Author: cgutman
Date: Mon Mar 23 02:39:57 2009
New Revision: 40177
URL:
http://svn.reactos.org/svn/reactos?rev=40177&view=rev
Log:
- Fix a memory leak
Modified:
trunk/reactos/drivers/network/ndis/include/efilter.h
trunk/reactos/drivers/network/ndis/ndis/miniport.c
Modified: trunk/reactos/drivers/network/ndis/include/efilter.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/ndis/inclu…
==============================================================================
--- trunk/reactos/drivers/network/ndis/include/efilter.h [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/ndis/include/efilter.h [iso-8859-1] Mon Mar 23 02:39:57
2009
@@ -56,6 +56,11 @@
VOID
NTAPI
+EthDeleteFilter(
+ IN PETH_FILTER Filter);
+
+VOID
+NTAPI
EthFilterDprIndicateReceive(
IN PETH_FILTER Filter,
IN NDIS_HANDLE MacReceiveContext,
Modified: trunk/reactos/drivers/network/ndis/ndis/miniport.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/ndis/ndis/…
==============================================================================
--- trunk/reactos/drivers/network/ndis/ndis/miniport.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/ndis/ndis/miniport.c [iso-8859-1] Mon Mar 23 02:39:57
2009
@@ -1898,6 +1898,12 @@
Adapter->NdisMiniportBlock.AllocatedResourcesTranslated = NULL;
}
+ if (Adapter->NdisMiniportBlock.EthDB)
+ {
+ EthDeleteFilter(Adapter->NdisMiniportBlock.EthDB);
+ Adapter->NdisMiniportBlock.EthDB = NULL;
+ }
+
Adapter->NdisMiniportBlock.OldPnPDeviceState =
Adapter->NdisMiniportBlock.PnPDeviceState;
Adapter->NdisMiniportBlock.PnPDeviceState = NdisPnPDeviceStopped;