From: Masashi Honma Date: Fri, 5 Sep 2014 06:42:32 +0000 (+0900) Subject: openssl: Fix memory leak in openssl ec deinit X-Git-Tag: hostap_2_3~111 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c61d214ade604d1de8a56ff854c332c7406e737;p=thirdparty%2Fhostap.git openssl: Fix memory leak in openssl ec deinit Signed-off-by: Masashi Honma --- diff --git a/src/crypto/crypto_openssl.c b/src/crypto/crypto_openssl.c index f02aaacb7..8876ebf28 100644 --- a/src/crypto/crypto_openssl.c +++ b/src/crypto/crypto_openssl.c @@ -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);