From: Jouni Malinen Date: Sun, 16 Jan 2011 11:02:11 +0000 (+0200) Subject: EAP-pwd: Use os_free to free memory allocated with os_malloc X-Git-Tag: hostap-1-bp~634 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b13d3d63d5756cda200972bf64f735e8e4c9b28b;p=thirdparty%2Fhostap.git EAP-pwd: Use os_free to free memory allocated with os_malloc The direct use of free() caused a crash with CONFIG_WPA_TRACE=y. --- diff --git a/src/eap_common/eap_pwd_common.c b/src/eap_common/eap_pwd_common.c index 3dbe9e443..5cd0a9436 100644 --- a/src/eap_common/eap_pwd_common.c +++ b/src/eap_common/eap_pwd_common.c @@ -257,7 +257,7 @@ int compute_password_element(EAP_PWD_group *grp, u16 num, BN_free(cofactor); BN_free(x_candidate); BN_free(rnd); - free(prfbuf); + os_free(prfbuf); return ret; }