Module: wine Branch: master Commit: 0a46f9b678c1ca009f8b401fe77b839a0c84ea18 URL: http://source.winehq.org/git/wine.git/?a=commit;h=0a46f9b678c1ca009f8b401fe7...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Sun Jan 16 14:49:10 2011 +0300
rsaenh/tests: Fix a key leak (Valgrind).
---
dlls/rsaenh/tests/rsaenh.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/rsaenh/tests/rsaenh.c b/dlls/rsaenh/tests/rsaenh.c index dd69c1d..fab959c 100644 --- a/dlls/rsaenh/tests/rsaenh.c +++ b/dlls/rsaenh/tests/rsaenh.c @@ -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);