提交 f468e382 编写于 作者: B Bodo Möller

fix memory leak (BIO_free_all needs pointer to first BIO)

PR: 1070
上级 ea1b02db
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册