From c4dd0ff5ec93c5751669634fc0625d31e1e2486b Mon Sep 17 00:00:00 2001 From: Andrey Gusev Date: Thu, 4 Jan 2018 11:22:52 +0200 Subject: [PATCH] ntdll/tests: Fix resource leak. Signed-off-by: Andrey Gusev Signed-off-by: Alexandre Julliard --- dlls/ntdll/tests/atom.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/ntdll/tests/atom.c b/dlls/ntdll/tests/atom.c index 972a54ea9ce..a481758ee6e 100644 --- a/dlls/ntdll/tests/atom.c +++ b/dlls/ntdll/tests/atom.c @@ -179,6 +179,7 @@ static void test_NtAtom(void) testThread = CreateThread(NULL, 0, RtlAtomTestThread, &AtomTable, 0, NULL); WaitForSingleObject(testThread, INFINITE); + CloseHandle(testThread); Len = 64; res = pRtlQueryAtomInAtomTable(AtomTable, Atom2, &RefCount, &PinCount, Name, &Len);