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:
955d465
)
Fix leak.
author
Dr. Stephen Henson
<steve@openssl.org>
Thu, 22 Apr 2004 12:37:16 +0000
(12:37 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Thu, 22 Apr 2004 12:37:16 +0000
(12:37 +0000)
PR:870
crypto/pem/pem_pkey.c
patch
|
blob
|
history
diff --git
a/crypto/pem/pem_pkey.c
b/crypto/pem/pem_pkey.c
index 7f33bf761a4c9640594ee06d61bf2be2a2c51e30..ce8e83b9559e0da6426a0eb79607f4dd3f4bdf76 100644
(file)
--- 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);