From 7b196a9d14fc4795c7f46f63b92911833dac1637 Mon Sep 17 00:00:00 2001 From: Piotr Caban Date: Tue, 20 Nov 2018 01:00:32 +0100 Subject: [PATCH] ucrtbase: Fix leaks in misc tests. Signed-off-by: Piotr Caban Signed-off-by: Alexandre Julliard --- dlls/ucrtbase/tests/misc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dlls/ucrtbase/tests/misc.c b/dlls/ucrtbase/tests/misc.c index 8a708da9de9..22518630043 100644 --- a/dlls/ucrtbase/tests/misc.c +++ b/dlls/ucrtbase/tests/misc.c @@ -250,6 +250,9 @@ static void test__register_onexit_function(void) ret = p_o__register_onexit_function(&table, onexit_func); ok(ret == 0, "got %d\n", ret); ok(f != table._last, "got %p, initial %p\n", table._last, f); + + ret = p_execute_onexit_table(&table); + ok(ret == 0, "got %d\n", ret); } static void test__execute_onexit_table(void) @@ -444,6 +447,8 @@ static void test__get_narrow_winmain_command_line(char *path) CREATE_DEFAULT_ERROR_MODE|NORMAL_PRIORITY_CLASS, NULL, NULL, &startup, &proc); winetest_wait_child_process(proc.hProcess); + CloseHandle(proc.hProcess); + CloseHandle(proc.hThread); } static BOOL init(void)