Commit 0dc82780 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

crypt32: Free lower quality chain contexts.

parent a4e88cb6
......@@ -473,9 +473,9 @@ static void CRYPT_FreeChainContext(PCertificateChain chain)
{
DWORD i;
/* Note the chain's rgpLowerQualityChainContext isn't freed, but
* it's never set, either.
*/
for (i = 0; i < chain->context.cLowerQualityChainContext; i++)
CertFreeCertificateChain(chain->context.rgpLowerQualityChainContext[i]);
CryptMemFree(chain->context.rgpLowerQualityChainContext);
for (i = 0; i < chain->context.cChain; i++)
CRYPT_FreeSimpleChain(chain->context.rgpChain[i]);
CryptMemFree(chain->context.rgpChain);
......
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