ucrtbase: Fix leaks in misc tests.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Piotr Caban 2018-11-20 01:00:32 +01:00 committed by Alexandre Julliard
parent 4df6425a34
commit 7b196a9d14
1 changed files with 5 additions and 0 deletions

View File

@ -250,6 +250,9 @@ static void test__register_onexit_function(void)
ret = p_o__register_onexit_function(&table, onexit_func); ret = p_o__register_onexit_function(&table, onexit_func);
ok(ret == 0, "got %d\n", ret); ok(ret == 0, "got %d\n", ret);
ok(f != table._last, "got %p, initial %p\n", table._last, f); 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) 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, CREATE_DEFAULT_ERROR_MODE|NORMAL_PRIORITY_CLASS,
NULL, NULL, &startup, &proc); NULL, NULL, &startup, &proc);
winetest_wait_child_process(proc.hProcess); winetest_wait_child_process(proc.hProcess);
CloseHandle(proc.hProcess);
CloseHandle(proc.hThread);
} }
static BOOL init(void) static BOOL init(void)