Commit a5e0f09b authored by Andrew Nguyen's avatar Andrew Nguyen Committed by Alexandre Julliard

ws2_32: Free the asynchronous query structure if thread creation fails.

parent 926fe277
......@@ -284,6 +284,7 @@ static HANDLE run_query( HWND hWnd, UINT uMsg, LPTHREAD_START_ROUTINE func,
if (!thread)
{
SetLastError( WSAEWOULDBLOCK );
HeapFree( GetProcessHeap(), 0, query );
return 0;
}
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