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:
parent
bc8318acbc
commit
b13d3d63d5
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue