Skip to content
Snippets Groups Projects
Commit 733c7f2c authored by Bruno Jesus's avatar Bruno Jesus Committed by Alexandre Julliard
Browse files

ws2_32: Fix a leak in WS2_AcceptEx.

parent 94532dbd
No related branches found
No related tags found
No related merge requests found
......@@ -2046,7 +2046,11 @@ static BOOL WINAPI WS2_AcceptEx(SOCKET listener, SOCKET acceptor, PVOID dest, DW
}
SERVER_END_REQ;
if(status != STATUS_PENDING) HeapFree( GetProcessHeap(), 0, wsa );
if(status != STATUS_PENDING)
{
HeapFree( GetProcessHeap(), 0, wsa->read );
HeapFree( GetProcessHeap(), 0, wsa );
}
SetLastError( NtStatusToWSAError(status) );
return FALSE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment