From fc8bf3c3b632cad603f980b05c04d8384c0d65ad Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Fri, 25 Apr 2014 12:34:06 +0400 Subject: [PATCH] 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 9c956294b7e..66f13db9275 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; -- 2.11.4.GIT