Commit 5485189e authored by Andrey Gusev's avatar Andrey Gusev Committed by Alexandre Julliard

webservices/tests: Fix resource leak.

parent 5c06eba5
......@@ -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 );
}
......@@ -732,7 +732,11 @@ START_TEST(proxy)
ret = WaitForSingleObject( info.event, 3000 );
ok(ret == WAIT_OBJECT_0, "failed to start test server %u\n", GetLastError());
if (ret != WAIT_OBJECT_0) return;
if (ret != WAIT_OBJECT_0)
{
CloseHandle(thread);
return;
}
test_WsSendMessage( info.port, &test1 );
test_WsReceiveMessage( info.port );
......@@ -741,4 +745,5 @@ START_TEST(proxy)
test_WsSendMessage( info.port, &quit );
WaitForSingleObject( thread, 3000 );
CloseHandle(thread);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment