openssl: Fix memory leak in openssl ec deinit

Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
This commit is contained in:
Masashi Honma 2014-09-05 15:42:32 +09:00 committed by Jouni Malinen
parent 10e7948f76
commit 5c61d214ad

View file

@ -1067,6 +1067,7 @@ void crypto_ec_deinit(struct crypto_ec *e)
if (e == NULL)
return;
BN_clear_free(e->order);
BN_clear_free(e->prime);
EC_GROUP_free(e->group);
BN_CTX_free(e->bnctx);
os_free(e);