diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2006-04-12 23:38:45 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2006-04-12 23:38:45 +0000 |
commit | 023c9d8dd5fee8dfe1ccc4aea71050f4c7ca6680 (patch) | |
tree | 1a269cfc7b9ebafad0de0945a39f8e6dbf4d042b /crypto/dsa/dsa_ameth.c | |
parent | 4c97a04e2e799ecc1a0fffa4b6f6b012ec41071f (diff) |
Fix leak.
Diffstat (limited to 'crypto/dsa/dsa_ameth.c')
-rw-r--r-- | crypto/dsa/dsa_ameth.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/dsa/dsa_ameth.c b/crypto/dsa/dsa_ameth.c index ce5e657463..56d2099ba4 100644 --- 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; |