From: Kurt Roeckx Date: Sat, 21 Feb 2015 13:51:50 +0000 (+0100) Subject: Fix memory leak X-Git-Tag: OpenSSL_1_1_0-pre1~1626 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=edac5dc220d494dff7ee259dfd84335ffa50e938;p=oweals%2Fopenssl.git Fix memory leak Reviewed-by: Matt Caswell --- 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; }