Nikolay Sivov : crypt32/tests: Fix some leaks (Valgrind).

Alexandre Julliard julliard at winehq.org
Fri Apr 25 14:15:25 CDT 2014


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

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Fri Apr 25 12:34:06 2014 +0400

crypt32/tests: Fix some leaks (Valgrind).

---

 dlls/crypt32/tests/cert.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/crypt32/tests/cert.c b/dlls/crypt32/tests/cert.c
index 9c95629..66f13db 100644
--- a/dlls/crypt32/tests/cert.c
+++ b/dlls/crypt32/tests/cert.c
@@ -797,7 +797,7 @@ static void testLinkCert(void)
     ok(link->pCertInfo == context->pCertInfo, "unexpected pCertInfo\n");
 
     CertFreeCertificateContext(link);
-
+    CertFreeCertificateContext(context);
     CertCloseStore(store, 0);
 }
 
@@ -2343,6 +2343,7 @@ static void testCreateSelfSignCert(void)
      "Expected NTE_NO_KEY, got %08x\n", GetLastError());
     ret = CryptGenKey(csp, AT_KEYEXCHANGE, 0, &key);
     ok(ret, "CryptGenKey failed: %08x\n", GetLastError());
+    CryptDestroyKey(key);
 
     memset(&info,0,sizeof(info));
     info.dwProvType = PROV_RSA_FULL;




More information about the wine-cvs mailing list