From 50c37276241b09b52b03571b4c5146af8091be9f Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Thu, 22 Apr 2004 12:37:53 +0000 Subject: [PATCH] Update from main branch. --- crypto/pem/pem_pkey.c | 1 + 1 file changed, 1 insertion(+) diff --git a/crypto/pem/pem_pkey.c b/crypto/pem/pem_pkey.c index f77c949e87..9ecdbd5419 100644 --- a/crypto/pem/pem_pkey.c +++ b/crypto/pem/pem_pkey.c @@ -104,6 +104,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); -- 2.25.1