[PATCH] webservices/tests: Fix resource leak.
Andrey Gusev
andrey.goosev at gmail.com
Thu Jan 4 03:23:11 CST 2018
Signed-off-by: Andrey Gusev <andrey.goosev at gmail.com>
---
dlls/webservices/tests/channel.c | 4 ++++
dlls/webservices/tests/proxy.c | 1 +
2 files changed, 5 insertions(+)
diff --git a/dlls/webservices/tests/channel.c b/dlls/webservices/tests/channel.c
index 32820fed1f..17a0b58ac8 100644
--- a/dlls/webservices/tests/channel.c
+++ b/dlls/webservices/tests/channel.c
@@ -976,6 +976,7 @@ START_TEST(channel)
thread = start_listener( &info );
test_message_read_write( &info );
WaitForSingleObject( thread, 3000 );
+ CloseHandle(thread);
info.type = WS_CHANNEL_TYPE_DUPLEX_SESSION;
info.binding = WS_TCP_CHANNEL_BINDING;
@@ -984,6 +985,7 @@ START_TEST(channel)
thread = start_listener( &info );
test_duplex_session( &info );
WaitForSingleObject( thread, 3000 );
+ CloseHandle(thread);
info.type = WS_CHANNEL_TYPE_DUPLEX;
info.binding = WS_UDP_CHANNEL_BINDING;
@@ -992,6 +994,7 @@ START_TEST(channel)
thread = start_listener( &info );
test_WsAcceptChannel( &info );
WaitForSingleObject( thread, 3000 );
+ CloseHandle(thread);
info.type = WS_CHANNEL_TYPE_DUPLEX_SESSION;
info.binding = WS_TCP_CHANNEL_BINDING;
@@ -999,6 +1002,7 @@ START_TEST(channel)
thread = start_listener( &info );
test_WsAcceptChannel( &info );
WaitForSingleObject( thread, 3000 );
+ CloseHandle(thread);
if (firewall_enabled) set_firewall( APP_REMOVE );
}
diff --git a/dlls/webservices/tests/proxy.c b/dlls/webservices/tests/proxy.c
index bc7ef81db7..3899665873 100644
--- a/dlls/webservices/tests/proxy.c
+++ b/dlls/webservices/tests/proxy.c
@@ -729,6 +729,7 @@ START_TEST(proxy)
info.event = CreateEventW( NULL, 0, 0, NULL );
thread = CreateThread( NULL, 0, server_proc, &info, 0, NULL );
ok( thread != NULL, "failed to create server thread %u\n", GetLastError() );
+ CloseHandle(thread);
ret = WaitForSingleObject( info.event, 3000 );
ok(ret == WAIT_OBJECT_0, "failed to start test server %u\n", GetLastError());
--
2.13.6
More information about the wine-devel
mailing list