Author: cgutman
Date: Mon Jan 26 14:45:01 2009
New Revision: 39118
URL:
http://svn.reactos.org/svn/reactos?rev=39118&view=rev
Log:
- Add a temporary hack for the double-freeing issue that memtrack keeps catching
- I would use my branch for this but I am doing some work on it that has broken some
things for now
Modified:
trunk/reactos/lib/drivers/ip/network/ip.c
Modified: trunk/reactos/lib/drivers/ip/network/ip.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/drivers/ip/network/ip.…
==============================================================================
--- trunk/reactos/lib/drivers/ip/network/ip.c [iso-8859-1] (original)
+++ trunk/reactos/lib/drivers/ip/network/ip.c [iso-8859-1] Mon Jan 26 14:45:01 2009
@@ -310,7 +310,10 @@
NCE = NBLocateNeighbor(&IF->Unicast);
if (NCE)
{
- TCPDisposeInterfaceData( IF->TCPContext );
+ if ( IF->TCPContext ) {
+ TCPDisposeInterfaceData( IF->TCPContext );
+ IF->TCPContext = NULL;
+ }
TI_DbgPrint(DEBUG_IP,("Removing interface Addr %s\n",
A2S(&IF->Unicast)));
TI_DbgPrint(DEBUG_IP,(" Mask %s\n",
A2S(&IF->Netmask)));