Juan Lang : cryptnet: Fix a leak.

Alexandre Julliard julliard at winehq.org
Mon Oct 22 09:55:15 CDT 2007


Module: wine
Branch: master
Commit: 25c21e5bff210d1952c75721fc6a134c6a746a38
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=25c21e5bff210d1952c75721fc6a134c6a746a38

Author: Juan Lang <juan.lang at gmail.com>
Date:   Fri Oct 19 10:23:24 2007 -0700

cryptnet: Fix a leak.

---

 dlls/cryptnet/tests/cryptnet.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/cryptnet/tests/cryptnet.c b/dlls/cryptnet/tests/cryptnet.c
index 25ad872..8862d16 100644
--- a/dlls/cryptnet/tests/cryptnet.c
+++ b/dlls/cryptnet/tests/cryptnet.c
@@ -146,6 +146,7 @@ static void test_getObjectUrl(void)
          NULL);
         ok(!ret && GetLastError() == CRYPT_E_NOT_FOUND,
          "Expected CRYPT_E_NOT_FOUND, got %08x\n", GetLastError());
+        CertFreeCertificateContext(cert);
     }
     cert = CertCreateCertificateContext(X509_ASN_ENCODING,
      certWithCRLDistPoint, sizeof(certWithCRLDistPoint));




More information about the wine-cvs mailing list