Update from main branch.
authorDr. Stephen Henson <steve@openssl.org>
Thu, 22 Apr 2004 12:37:53 +0000 (12:37 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 22 Apr 2004 12:37:53 +0000 (12:37 +0000)
crypto/pem/pem_pkey.c

index f77c949e87b3d2054760700488d0ad8498f1c690..9ecdbd5419ee39db82447784fbc53287280de18e 100644 (file)
@@ -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);