[ros-diffs] [cgutman] 37238: - Fix a memory leak

cgutman at svn.reactos.org cgutman at svn.reactos.org
Fri Nov 7 04:46:27 CET 2008


Author: cgutman
Date: Thu Nov  6 21:46:26 2008
New Revision: 37238

URL: http://svn.reactos.org/svn/reactos?rev=37238&view=rev
Log:
 - Fix a memory leak

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=37238&r1=37237&r2=37238&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 21:46:26 2008
@@ -387,8 +387,10 @@
   switch (AddrFile->Protocol) {
   case IPPROTO_TCP:
     TCPFreePort( AddrFile->Port );
-    if( AddrFile->Listener )
-	TCPClose( AddrFile->Listener );
+    if( AddrFile->Listener ) {
+	    TCPClose( AddrFile->Listener );
+	    ExFreePool( AddrFile->Listener );
+    }
     break;
 
   case IPPROTO_UDP:



More information about the Ros-diffs mailing list