diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2004-04-22 12:37:16 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2004-04-22 12:37:16 +0000 |
commit | d735c649052884f65f8e927e6f4221d5388c12cd (patch) | |
tree | be9fd324218b1ba9fab282f3088e1ddace19e0d0 /crypto/pem | |
parent | 955d465c2c3e7860f6897ed37989895641b65a8f (diff) |
Fix leak.
PR:870
Diffstat (limited to 'crypto/pem')
-rw-r--r-- | crypto/pem/pem_pkey.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/pem/pem_pkey.c b/crypto/pem/pem_pkey.c index 7f33bf761a..ce8e83b955 100644 --- a/crypto/pem/pem_pkey.c +++ b/crypto/pem/pem_pkey.c @@ -107,6 +107,7 @@ EVP_PKEY *PEM_read_bio_PrivateKey(BIO *bp, EVP_PKEY **x, pem_password_cb *cb, vo if (klen <= 0) { PEMerr(PEM_F_PEM_ASN1_READ_BIO, PEM_R_BAD_PASSWORD_READ); + X509_SIG_free(p8); goto err; } p8inf = PKCS8_decrypt(p8, psbuf, klen); |