fix memory leak (BIO_free_all needs pointer to first BIO)

PR: 1070
This commit is contained in:
Bodo Möller 2005-05-17 05:52:24 +00:00
parent ea1b02db6a
commit f468e3824a

View File

@ -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);