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:
parent
2f6393bfa0
commit
9608c794c9
|
@ -2293,7 +2293,10 @@ static BOOL CRYPT_BuildCandidateChainFromCert(CertificateChainEngine *engine,
|
||||||
chain->context.dwRevocationFreshnessTime = 0;
|
chain->context.dwRevocationFreshnessTime = 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
CRYPT_FreeSimpleChain(simpleChain);
|
||||||
ret = FALSE;
|
ret = FALSE;
|
||||||
|
}
|
||||||
*ppChain = chain;
|
*ppChain = chain;
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in New Issue