Andrey Gusev : wininet/tests: Fix resource leak.

Alexandre Julliard julliard at winehq.org
Fri Jan 5 14:02:04 CST 2018


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

Author: Andrey Gusev <andrey.goosev at gmail.com>
Date:   Fri Jan  5 14:38:37 2018 +0200

wininet/tests: Fix resource leak.

Signed-off-by: Andrey Gusev <andrey.goosev at gmail.com>
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/wininet/tests/http.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dlls/wininet/tests/http.c b/dlls/wininet/tests/http.c
index ca1173e..efc73e0 100644
--- a/dlls/wininet/tests/http.c
+++ b/dlls/wininet/tests/http.c
@@ -5459,7 +5459,10 @@ static void test_http_connection(void)
     r = WaitForSingleObject(si.hEvent, 10000);
     ok (r == WAIT_OBJECT_0, "failed to start wininet test server\n");
     if (r != WAIT_OBJECT_0)
+    {
+        CloseHandle(hThread);
         return;
+    }
 
     test_basic_request(si.port, "GET", "/test1");
     test_proxy_indirect(si.port);




More information about the wine-cvs mailing list