projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e224c45
)
Fix memory leak
author
Kurt Roeckx
<kurt@roeckx.be>
Sat, 21 Feb 2015 13:51:50 +0000
(14:51 +0100)
committer
Kurt Roeckx
<kurt@roeckx.be>
Sun, 22 Feb 2015 12:27:19 +0000
(13:27 +0100)
Reviewed-by: Matt Caswell <matt@openssl.org>
(cherry picked from commit
edac5dc220d494dff7ee259dfd84335ffa50e938
)
crypto/dh/dh_ameth.c
patch
|
blob
|
history
diff --git
a/crypto/dh/dh_ameth.c
b/crypto/dh/dh_ameth.c
index 76df91b4e2a1634ffd4a478976635eb0d551cc5b..786f021810d06211868cab123107841c015efe8b 100644
(file)
--- 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;
}