Module: wine Branch: master Commit: a5e0f09b52e045c70965947f8f98fa8b84de6edd URL: http://source.winehq.org/git/wine.git/?a=commit;h=a5e0f09b52e045c70965947f8f...
Author: Andrew Nguyen anguyen@codeweavers.com Date: Wed Jun 1 07:14:08 2011 -0500
ws2_32: Free the asynchronous query structure if thread creation fails.
---
dlls/ws2_32/async.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/ws2_32/async.c b/dlls/ws2_32/async.c index 2f79968..ce28142 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 );