Commit 329761e7 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

crypt32: Fix a leak building an alternate chain.

parent e94ce8a0
...@@ -1197,6 +1197,10 @@ static PCertificateChain CRYPT_BuildAlternateContextFromChain( ...@@ -1197,6 +1197,10 @@ static PCertificateChain CRYPT_BuildAlternateContextFromChain(
BOOL ret = CRYPT_AddCertToSimpleChain(engine, BOOL ret = CRYPT_AddCertToSimpleChain(engine,
alternate->context.rgpChain[i], alternateIssuer, infoStatus); alternate->context.rgpChain[i], alternateIssuer, infoStatus);
/* CRYPT_AddCertToSimpleChain add-ref's the issuer, so free it
* to close the enumeration that found it
*/
CertFreeCertificateContext(alternateIssuer);
if (ret) if (ret)
{ {
ret = CRYPT_BuildSimpleChain(engine, alternate->world, ret = CRYPT_BuildSimpleChain(engine, alternate->world,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment