[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-cvs
Subject: Juan Lang : crypt32: Free lower quality chain contexts.
From: Alexandre Julliard <julliard () wine ! codeweavers ! com>
Date: 2007-08-31 19:01:20
Message-ID: E1IRBk8-00006q-6L () wine ! codeweavers ! com
[Download RAW message or body]
Module: wine
Branch: master
Commit: 0dc82780cab6583935abcc811ef912cd215b1767
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0dc82780cab6583935abcc811ef912cd215b1767
Author: Juan Lang <juan.lang@gmail.com>
Date: Thu Aug 30 17:52:30 2007 -0700
crypt32: Free lower quality chain contexts.
---
dlls/crypt32/chain.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/crypt32/chain.c b/dlls/crypt32/chain.c
index b87eee1..24bb197 100644
--- a/dlls/crypt32/chain.c
+++ b/dlls/crypt32/chain.c
@@ -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);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic