Browse Source

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.
Jouni Malinen 14 years ago
parent
commit
b13d3d63d5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/eap_common/eap_pwd_common.c

+ 1 - 1
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(cofactor);
 	BN_free(x_candidate);
 	BN_free(x_candidate);
 	BN_free(rnd);
 	BN_free(rnd);
-	free(prfbuf);
+	os_free(prfbuf);
 
 
 	return ret;
 	return ret;
 }
 }