openssl: Fix memory leak in openssl ec deinit
Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
This commit is contained in:
parent
10e7948f76
commit
5c61d214ad
1 changed files with 1 additions and 0 deletions
|
@ -1067,6 +1067,7 @@ void crypto_ec_deinit(struct crypto_ec *e)
|
||||||
if (e == NULL)
|
if (e == NULL)
|
||||||
return;
|
return;
|
||||||
BN_clear_free(e->order);
|
BN_clear_free(e->order);
|
||||||
|
BN_clear_free(e->prime);
|
||||||
EC_GROUP_free(e->group);
|
EC_GROUP_free(e->group);
|
||||||
BN_CTX_free(e->bnctx);
|
BN_CTX_free(e->bnctx);
|
||||||
os_free(e);
|
os_free(e);
|
||||||
|
|
Loading…
Reference in a new issue