Alexandre Julliard : kernel32/tests: Fix a dll reference leak.

Alexandre Julliard julliard at winehq.org
Tue Aug 29 14:48:24 CDT 2017


Module: wine
Branch: master
Commit: 24e9dcb1b420695c3197ddb99cef89c50177c5b7
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=24e9dcb1b420695c3197ddb99cef89c50177c5b7

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Aug 29 11:30:48 2017 +0200

kernel32/tests: Fix a dll reference leak.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/kernel32/tests/loader.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/kernel32/tests/loader.c b/dlls/kernel32/tests/loader.c
index 1c44257..91a6ff0 100644
--- a/dlls/kernel32/tests/loader.c
+++ b/dlls/kernel32/tests/loader.c
@@ -1486,6 +1486,7 @@ static void test_import_resolution(void)
             ok( ptr->thunks[0].u1.Function == 0xdeadbeef, "thunk resolved to %p for %s.%s\n",
                 (void *)ptr->thunks[0].u1.Function, data.module, data.function.name );
             ok( ptr->tls_index == 9999, "wrong tls index %d\n", ptr->tls_index );
+            FreeLibrary( mod2 );
             FreeLibrary( mod );
             break;
         case 2:  /* load without IMAGE_FILE_DLL doesn't resolve imports */




More information about the wine-cvs mailing list