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:
4c97a04
)
Fix leak.
author
Dr. Stephen Henson
<steve@openssl.org>
Wed, 12 Apr 2006 23:38:45 +0000
(23:38 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Wed, 12 Apr 2006 23:38:45 +0000
(23:38 +0000)
crypto/dsa/dsa_ameth.c
patch
|
blob
|
history
diff --git
a/crypto/dsa/dsa_ameth.c
b/crypto/dsa/dsa_ameth.c
index ce5e6574633a8694086a33f61900a3b3f6e4f487..56d2099ba4ed3c4a533fe3d448bfe27be20e0b1f 100644
(file)
--- a/
crypto/dsa/dsa_ameth.c
+++ b/
crypto/dsa/dsa_ameth.c
@@
-271,6
+271,8
@@
static int dsa_priv_decode(EVP_PKEY *pkey, PKCS8_PRIV_KEY_INFO *p8)
DSAerr(DSA_F_DSA_PRIV_DECODE, EVP_R_DECODE_ERROR);
dsaerr:
BN_CTX_free (ctx);
+ if (privkey)
+ ASN1_INTEGER_free(privkey);
sk_ASN1_TYPE_pop_free(ndsa, ASN1_TYPE_free);
DSA_free(dsa);
return 0;