diff --git a/dlls/ws2_32/async.c b/dlls/ws2_32/async.c index 2f799689be2..ce281429a38 100644 --- a/dlls/ws2_32/async.c +++ b/dlls/ws2_32/async.c @@ -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 );