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/net…
==============================================================================
--- 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: