crypt32: Fix a leak during chain creation.
This commit is contained in:
parent
4690a9c800
commit
fc14728efc
|
@ -913,6 +913,10 @@ static BOOL CRYPT_BuildSimpleChain(PCertificateChainEngine engine,
|
||||||
if (issuer)
|
if (issuer)
|
||||||
{
|
{
|
||||||
ret = CRYPT_AddCertToSimpleChain(engine, chain, issuer, infoStatus);
|
ret = CRYPT_AddCertToSimpleChain(engine, chain, issuer, infoStatus);
|
||||||
|
/* CRYPT_AddCertToSimpleChain add-ref's the issuer, so free it to
|
||||||
|
* close the enumeration that found it
|
||||||
|
*/
|
||||||
|
CertFreeCertificateContext(issuer);
|
||||||
cert = issuer;
|
cert = issuer;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue