diff options
author | Kurt Roeckx <kurt@roeckx.be> | 2015-02-21 14:51:50 +0100 |
---|---|---|
committer | Kurt Roeckx <kurt@roeckx.be> | 2015-02-22 13:23:53 +0100 |
commit | f95519538a0ed412dc56e091fb28dbfbc48babe8 (patch) | |
tree | aca561eecbfb57396aa95f9141fcb8ef4e1daa5f /crypto/dh | |
parent | 79e2e927e6e904a4b15e35c64eeb1461630cfe49 (diff) |
Fix memory leak
Reviewed-by: Matt Caswell <matt@openssl.org>
(cherry picked from commit edac5dc220d494dff7ee259dfd84335ffa50e938)
Diffstat (limited to 'crypto/dh')
-rw-r--r-- | crypto/dh/dh_ameth.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/dh/dh_ameth.c b/crypto/dh/dh_ameth.c index 533080aeeb..f32d3769e2 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; } |