Fix memory leak

Reviewed-by: Matt Caswell <matt@openssl.org>
(cherry picked from commit edac5dc220)
This commit is contained in:
Kurt Roeckx 2015-02-21 14:51:50 +01:00
parent e224c45317
commit 9e7a5464d7

View file

@ -223,6 +223,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;
}