From: Bodo Möller Date: Tue, 17 May 2005 05:52:24 +0000 (+0000) Subject: fix memory leak (BIO_free_all needs pointer to first BIO) X-Git-Tag: OpenSSL-fips-1_2_1~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f468e3824a4d8d9147bcfd29a499f3ccf3915c5e;p=openssl fix memory leak (BIO_free_all needs pointer to first BIO) PR: 1070 --- 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);