crypt32/tests: Fix some leaks (Valgrind).

oldstable
Nikolay Sivov 2014-04-25 12:34:06 +04:00 committed by Alexandre Julliard
parent 71d5e6f4a6
commit fc8bf3c3b6
1 changed files with 2 additions and 1 deletions

View File

@ -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;