From edac5dc220d494dff7ee259dfd84335ffa50e938 Mon Sep 17 00:00:00 2001 From: Kurt Roeckx Date: Sat, 21 Feb 2015 14:51:50 +0100 Subject: [PATCH] Fix memory leak Reviewed-by: Matt Caswell --- crypto/dh/dh_ameth.c | 1 + 1 file changed, 1 insertion(+) diff --git a/crypto/dh/dh_ameth.c b/crypto/dh/dh_ameth.c index b5c9c24303..14d291f309 100644 --- a/crypto/dh/dh_ameth.c +++ b/crypto/dh/dh_ameth.c @@ -248,6 +248,7 @@ static int dh_priv_decode(EVP_PKEY *pkey, PKCS8_PRIV_KEY_INFO *p8) DHerr(DH_F_DH_PRIV_DECODE, EVP_R_DECODE_ERROR); dherr: DH_free(dh); + ASN1_INTEGER_free(privkey); return 0; } -- 2.25.1