ws2_32: Fix a leak in WS2_AcceptEx.
This commit is contained in:
parent
94532dbd08
commit
733c7f2c72
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue