diff options
author | Bodo Möller <bodo@openssl.org> | 2005-05-17 05:52:24 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2005-05-17 05:52:24 +0000 |
commit | f468e3824a4d8d9147bcfd29a499f3ccf3915c5e (patch) | |
tree | b75e57d9c69af449d9cd332d001cf739de18c2a3 | |
parent | ea1b02db6ab4864befde88ed03099f075cf7db76 (diff) |
fix memory leak (BIO_free_all needs pointer to first BIO)
PR: 1070
-rw-r--r-- | crypto/pkcs7/pk7_smime.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/crypto/pkcs7/pk7_smime.c b/crypto/pkcs7/pk7_smime.c index 4607e5fd69..d37be48239 100644 --- a/crypto/pkcs7/pk7_smime.c +++ b/crypto/pkcs7/pk7_smime.c @@ -300,11 +300,9 @@ int PKCS7_verify(PKCS7 *p7, STACK_OF(X509) *certs, X509_STORE *store, if (tmpin == indata) { - if(indata) BIO_pop(p7bio); - BIO_free_all(p7bio); + if (indata) BIO_pop(p7bio); } - else - BIO_free_all(tmpin); + BIO_free_all(p7bio); sk_X509_free(signers); |