]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
openssl: Fix memory leak in openssl ec deinit
authorMasashi Honma <masashi.honma@gmail.com>
Fri, 5 Sep 2014 06:42:32 +0000 (15:42 +0900)
committerJouni Malinen <j@w1.fi>
Sun, 7 Sep 2014 16:14:18 +0000 (19:14 +0300)
Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
src/crypto/crypto_openssl.c

index f02aaacb707692a876d97f5ced82c586e3dbde99..8876ebf2820474005920c807b4c3f23a7adb9932 100644 (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);