[PATCH] openssl: Fix memory leak in openssl ec deinit

Masashi Honma masashi.honma at gmail.com
Fri Sep 5 02:42:32 EDT 2014


Signed-off-by: Masashi Honma <masashi.honma at gmail.com>
---
 src/crypto/crypto_openssl.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/crypto/crypto_openssl.c b/src/crypto/crypto_openssl.c
index f02aaac..8876ebf 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);
-- 
1.9.1



More information about the HostAP mailing list