rsaenh/tests: Fix memory leak.

This commit is contained in:
Juan Lang 2009-12-08 11:40:37 -08:00 committed by Alexandre Julliard
parent 4df042b54b
commit 71b4ac9c71

View File

@ -2355,9 +2355,9 @@ static void test_null_provider(void)
CryptDestroyKey(key);
result = CryptGetUserKey(prov, AT_KEYEXCHANGE, &key);
ok(result, "CryptGetUserKey with AT_KEYEXCHANGE failed: %08x\n", GetLastError());
CryptDestroyKey(key);
result = CryptGetUserKey(prov, AT_SIGNATURE, &key);
ok(!result, "expected CryptGetUserKey to fail\n");
CryptDestroyKey(key);
CryptReleaseContext(prov, 0);
CryptAcquireContext(&prov, szContainer, NULL, PROV_RSA_FULL,