Commit f468e382 authored by Bodo Möller's avatar Bodo Möller
Browse files

fix memory leak (BIO_free_all needs pointer to first BIO)

PR: 1070
parent ea1b02db
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -301,10 +301,8 @@ int PKCS7_verify(PKCS7 *p7, STACK_OF(X509) *certs, X509_STORE *store,
	if (tmpin == indata)
		{
		if (indata) BIO_pop(p7bio);
		BIO_free_all(p7bio);
		}
	else
		BIO_free_all(tmpin);
	BIO_free_all(p7bio);

	sk_X509_free(signers);