Piotr Caban : ucrtbase: Fix leaks in misc tests.

Alexandre Julliard julliard at winehq.org
Tue Nov 20 15:39:49 CST 2018


Module: wine
Branch: master
Commit: 7b196a9d14fc4795c7f46f63b92911833dac1637
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=7b196a9d14fc4795c7f46f63b92911833dac1637

Author: Piotr Caban <piotr at codeweavers.com>
Date:   Tue Nov 20 01:00:32 2018 +0100

ucrtbase: Fix leaks in misc tests.

Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 8a708da..2251863 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)




More information about the wine-cvs mailing list