rsaenh/tests: Fix a key leak (Valgrind).

This commit is contained in:
Nikolay Sivov 2011-01-16 14:49:10 +03:00 committed by Alexandre Julliard
parent ba7f7046ee
commit 0a46f9b678
1 changed files with 2 additions and 0 deletions

View File

@ -662,6 +662,8 @@ static void test_hashes(void)
sizeof(signed_ssl3_shamd5_hash));
printBytes("got", pbSigValue, len);
}
result = CryptDestroyKey(hKeyExchangeKey);
ok(result, "CryptDestroyKey failed 0x%08x\n", GetLastError());
result = CryptDestroyHash(hHash);
ok(result, "CryptDestroyHash failed 0x%08x\n", GetLastError());
result = CryptReleaseContext(prov, 0);