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.
This commit is contained in:
Jouni Malinen 2011-01-16 13:02:11 +02:00
parent bc8318acbc
commit b13d3d63d5

View file

@ -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;
}