Author: cgutman
Date: Fri Jan 16 19:40:06 2009
New Revision: 38805
URL:
http://svn.reactos.org/svn/reactos?rev=38805&view=rev
Log:
- More memtrack fixes
Modified:
branches/aicom-network-fixes/drivers/network/lan/lan/routines.c
branches/aicom-network-fixes/drivers/network/tcpip/tcpip/mockbuffer.c
Modified: branches/aicom-network-fixes/drivers/network/lan/lan/routines.c
URL:
http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/drivers/net…
==============================================================================
--- branches/aicom-network-fixes/drivers/network/lan/lan/routines.c [iso-8859-1]
(original)
+++ branches/aicom-network-fixes/drivers/network/lan/lan/routines.c [iso-8859-1] Fri Jan
16 19:40:06 2009
@@ -87,23 +87,22 @@
NDIS_STATUS Status;
PCHAR NewData;
- NewData = ExAllocatePool( NonPagedPool, Len );
+ NewData = exAllocatePool( NonPagedPool, Len );
if( !NewData ) return NDIS_STATUS_NOT_ACCEPTED; // XXX
- TrackWithTag(EXALLOC_TAG, NewData, File, Line);
if( Data )
RtlCopyMemory(NewData, Data, Len);
NdisAllocatePacket( &Status, &Packet, GlobalPacketPool );
if( Status != NDIS_STATUS_SUCCESS ) {
- ExFreePool( NewData );
+ exFreePool( NewData );
return Status;
}
TrackWithTag(NDIS_PACKET_TAG, Packet, File, Line);
NdisAllocateBuffer( &Status, &Buffer, GlobalBufferPool, NewData, Len );
if( Status != NDIS_STATUS_SUCCESS ) {
- ExFreePool( NewData );
+ exFreePool( NewData );
FreeNdisPacket( Packet );
}
TrackWithTag(NDIS_BUFFER_TAG, Buffer, File, Line);
@@ -139,8 +138,7 @@
NdisQueryBuffer(Buffer, &Data, &Length);
NdisFreeBuffer(Buffer);
UntrackFL(File,Line,Buffer);
- ExFreePool(Data);
- UntrackFL(File,Line,Data);
+ exFreePool(Data);
}
/* Finally free the NDIS packet discriptor */
Modified: branches/aicom-network-fixes/drivers/network/tcpip/tcpip/mockbuffer.c
URL:
http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/drivers/net…
==============================================================================
--- branches/aicom-network-fixes/drivers/network/tcpip/tcpip/mockbuffer.c [iso-8859-1]
(original)
+++ branches/aicom-network-fixes/drivers/network/tcpip/tcpip/mockbuffer.c [iso-8859-1] Fri
Jan 16 19:40:06 2009
@@ -432,7 +432,6 @@
NewData = exAllocatePool( NonPagedPool, Len );
if( !NewData ) return NDIS_STATUS_NOT_ACCEPTED; // XXX
- TrackWithTag(EXALLOC_TAG, NewData, File, Line);
if( Data )
RtlCopyMemory(NewData, Data, Len);