summaryrefslogtreecommitdiff
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:27:19 +0100
commit9e7a5464d74917d9eb22305d3505895678b5b3c5 (patch)
tree6ed4b69e3e241fd7a0c58652bcff8db6a8dd774f
parente224c45317b8a78ff52a121aac30ffc1499410c8 (diff)
downloadopenssl-new-9e7a5464d74917d9eb22305d3505895678b5b3c5.tar.gz
Fix memory leak
Reviewed-by: Matt Caswell <matt@openssl.org> (cherry picked from commit edac5dc220d494dff7ee259dfd84335ffa50e938)
-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 76df91b4e2..786f021810 100644
--- a/crypto/dh/dh_ameth.c
+++ b/crypto/dh/dh_ameth.c
@@ -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;
}