[PATCH] wininet/tests: Fix resource leak.
Andrey Gusev
andrey.goosev at gmail.com
Fri Jan 5 06:38:37 CST 2018
Signed-off-by: Andrey Gusev <andrey.goosev at gmail.com>
---
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 ca1173e940..efc73e039f 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);
--
2.13.6
More information about the wine-devel
mailing list