mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 22:36:23 +00:00
- Move memory freeing to ListenComplete
svn path=/branches/aicom-network-fixes/; revision=35296
This commit is contained in:
parent
70fd5e3314
commit
90f6b947b8
2 changed files with 2 additions and 3 deletions
|
@ -142,6 +142,8 @@ static NTSTATUS NTAPI ListenComplete
|
|||
ListEntry ) );
|
||||
}
|
||||
|
||||
if( FCB->ListenIrp.ConnectionCallInfo ) ExFreePool( FCB->ListenIrp.ConnectionCallInfo );
|
||||
if( FCB->ListenIrp.ConnectionReturnInfo ) ExFreePool( FCB->ListenIrp.ConnectionReturnInfo );
|
||||
FCB->NeedsNewListen = TRUE;
|
||||
|
||||
/* Trigger a select return if appropriate */
|
||||
|
|
|
@ -193,9 +193,6 @@ VOID DestroySocket( PAFD_FCB FCB ) {
|
|||
InFlightRequest[i]->InFlightRequest->IoStatus.Status = STATUS_CANCELLED;
|
||||
InFlightRequest[i]->InFlightRequest->IoStatus.Information = 0;
|
||||
IoCancelIrp( InFlightRequest[i]->InFlightRequest );
|
||||
InFlightRequest[i]->InFlightRequest = NULL;
|
||||
if( InFlightRequest[i]->ConnectionCallInfo ) ExFreePool( InFlightRequest[i]->ConnectionCallInfo );
|
||||
if( InFlightRequest[i]->ConnectionReturnInfo ) ExFreePool( InFlightRequest[i]->ConnectionReturnInfo );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue