Hans Leidekker : bcrypt/tests: Fix a key handle leak.
Alexandre Julliard
julliard at winehq.org
Mon Oct 19 15:54:05 CDT 2020
Module: wine
Branch: master
Commit: f1e11804a02a2bf8c490484400e5d9251c18c4cf
URL: https://source.winehq.org/git/wine.git/?a=commit;h=f1e11804a02a2bf8c490484400e5d9251c18c4cf
Author: Hans Leidekker <hans at codeweavers.com>
Date: Mon Oct 19 11:24:10 2020 +0200
bcrypt/tests: Fix a key handle leak.
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/bcrypt/tests/bcrypt.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dlls/bcrypt/tests/bcrypt.c b/dlls/bcrypt/tests/bcrypt.c
index d499ce65a65..0ae4b5dad53 100644
--- a/dlls/bcrypt/tests/bcrypt.c
+++ b/dlls/bcrypt/tests/bcrypt.c
@@ -2603,6 +2603,9 @@ static void test_DSA(void)
ok(!memcmp(dssKey, buf, size), "wrong data\n");
HeapFree(GetProcessHeap(), 0, buf);
+ ret = pBCryptDestroyKey(key);
+ ok(!ret, "got %08x\n", ret);
+
ret = pBCryptCloseAlgorithmProvider(alg, 0);
ok(!ret, "got %08x\n", ret);
}
More information about the wine-cvs
mailing list