[PATCH] msvcr100/tests: Fix resource leak.

Andrey Gusev andrey.goosev at gmail.com
Wed Jan 3 09:35:39 CST 2018


Signed-off-by: Andrey Gusev <andrey.goosev at gmail.com>
---
 dlls/msvcr100/tests/msvcr100.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/msvcr100/tests/msvcr100.c b/dlls/msvcr100/tests/msvcr100.c
index b2346a89b5..f02f5ea89e 100644
--- a/dlls/msvcr100/tests/msvcr100.c
+++ b/dlls/msvcr100/tests/msvcr100.c
@@ -936,6 +936,7 @@ static void test_ExternalContextBase(void)
     thread = CreateThread(NULL, 0, external_context_thread, NULL, 0, NULL);
     ok(thread != NULL, "CreateThread failed: %d\n", GetLastError());
     WaitForSingleObject(thread, INFINITE);
+    CloseHandle(thread);
 }
 
 static void test_Scheduler(void)
-- 
2.13.6




More information about the wine-devel mailing list