Hans Leidekker : advapi32/tests: Fix a memory leak (Valgrind).
Alexandre Julliard
julliard at winehq.org
Fri Mar 24 16:24:24 CDT 2017
Module: wine
Branch: master
Commit: fbec6c540aaa6b6452abf8226e80787ab95e5cf5
URL: http://source.winehq.org/git/wine.git/?a=commit;h=fbec6c540aaa6b6452abf8226e80787ab95e5cf5
Author: Hans Leidekker <hans at codeweavers.com>
Date: Fri Mar 24 15:49:22 2017 +0100
advapi32/tests: Fix a memory leak (Valgrind).
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/advapi32/tests/crypt.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dlls/advapi32/tests/crypt.c b/dlls/advapi32/tests/crypt.c
index 84a54a1..13671eb 100644
--- a/dlls/advapi32/tests/crypt.c
+++ b/dlls/advapi32/tests/crypt.c
@@ -255,6 +255,9 @@ static void test_incorrect_api_usage(void)
ok (result, "%d\n", GetLastError());
if (!result) return;
+ result = pCryptDestroyKey(hKey);
+ ok (result, "%d\n", GetLastError());
+
result = pCryptGenKey(hProv, CALG_RC4, 0, &hKey2);
ok (result, "%d\n", GetLastError());
if (!result) return;
More information about the wine-cvs
mailing list