Commit 9608c794 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

crypt32: Fix a leak on error path (Coverity).

parent 2f6393bf
......@@ -2293,7 +2293,10 @@ static BOOL CRYPT_BuildCandidateChainFromCert(CertificateChainEngine *engine,
chain->context.dwRevocationFreshnessTime = 0;
}
else
{
CRYPT_FreeSimpleChain(simpleChain);
ret = FALSE;
}
*ppChain = chain;
}
return ret;
......
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