[ros-diffs] [cgutman] 37237: - Properly free the connection endpoint

cgutman at svn.reactos.org cgutman at svn.reactos.org
Fri Nov 7 03:53:47 CET 2008


Author: cgutman
Date: Thu Nov  6 20:53:46 2008
New Revision: 37237

URL: http://svn.reactos.org/svn/reactos?rev=37237&view=rev
Log:
 - Properly free the connection endpoint

Modified:
    branches/aicom-network-fixes/drivers/network/tcpip/tcpip/fileobjs.c

Modified: branches/aicom-network-fixes/drivers/network/tcpip/tcpip/fileobjs.c
URL: http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/drivers/network/tcpip/tcpip/fileobjs.c?rev=37237&r1=37236&r2=37237&view=diff
==============================================================================
--- branches/aicom-network-fixes/drivers/network/tcpip/tcpip/fileobjs.c [iso-8859-1] (original)
+++ branches/aicom-network-fixes/drivers/network/tcpip/tcpip/fileobjs.c [iso-8859-1] Thu Nov  6 20:53:46 2008
@@ -220,7 +220,7 @@
   RemoveEntryList(&Connection->ListEntry);
   TcpipReleaseSpinLock(&ConnectionEndpointListLock, OldIrql);
 
-  ExFreePool(Connection);
+  TCPFreeConnectionEndpoint(Connection);
 
   TI_DbgPrint(MAX_TRACE, ("Leaving.\n"));
 }
@@ -488,20 +488,18 @@
   PTDI_REQUEST Request)
 {
   PCONNECTION_ENDPOINT Connection;
-  NTSTATUS Status = STATUS_SUCCESS;
 
   TI_DbgPrint(MID_TRACE, ("Called.\n"));
 
   Connection = Request->Handle.ConnectionContext;
 
   TcpipRecursiveMutexEnter( &TCPLock, TRUE );
-  TCPClose(Connection);
   DeleteConnectionEndpoint(Connection);
   TcpipRecursiveMutexLeave( &TCPLock );
 
   TI_DbgPrint(MAX_TRACE, ("Leaving.\n"));
 
-  return Status;
+  return STATUS_SUCCESS;
 }
 
 



More information about the Ros-diffs mailing list