summaryrefslogtreecommitdiffstats
path: root/crypto/dh
diff options
context:
space:
mode:
authorKurt Roeckx <kurt@roeckx.be>2015-02-21 14:51:50 +0100
committerKurt Roeckx <kurt@roeckx.be>2015-02-22 13:18:24 +0100
commitedac5dc220d494dff7ee259dfd84335ffa50e938 (patch)
tree3561490b899a518f9c82e6cf7aefa51c8a187c5d /crypto/dh
parent1549a265209d449b6aefd2b49d7d39f7fbe0689b (diff)
Fix memory leak
Reviewed-by: Matt Caswell <matt@openssl.org>
Diffstat (limited to 'crypto/dh')
-rw-r--r--crypto/dh/dh_ameth.c1
1 files changed, 1 insertions, 0 deletions
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;
}