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

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2016-01-10 21:19:35 +03:00 committed by Alexandre Julliard
parent 2f6393bfa0
commit 9608c794c9
1 changed files with 3 additions and 0 deletions

View File

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