ws2_32: Free the asynchronous query structure if thread creation fails.
This commit is contained in:
parent
926fe27718
commit
a5e0f09b52
@ -284,6 +284,7 @@ static HANDLE run_query( HWND hWnd, UINT uMsg, LPTHREAD_START_ROUTINE func,
|
|||||||
if (!thread)
|
if (!thread)
|
||||||
{
|
{
|
||||||
SetLastError( WSAEWOULDBLOCK );
|
SetLastError( WSAEWOULDBLOCK );
|
||||||
|
HeapFree( GetProcessHeap(), 0, query );
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
CloseHandle( thread );
|
CloseHandle( thread );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user