Author: cgutman
Date: Sun Apr 26 09:43:06 2009
New Revision: 40707
URL:
http://svn.reactos.org/svn/reactos?rev=40707&view=rev
Log:
- Free NdisMiniportBlock.Resources when we receive a stop irp
Modified:
trunk/reactos/drivers/network/ndis/ndis/miniport.c
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] Sun Apr 26 09:43:06
2009
@@ -1971,6 +1971,12 @@
Adapter->NdisMiniportBlock.AllocatedResourcesTranslated = NULL;
}
+ if (Adapter->NdisMiniportBlock.Resources)
+ {
+ ExFreePool(Adapter->NdisMiniportBlock.Resources);
+ Adapter->NdisMiniportBlock.Resources = NULL;
+ }
+
if (Adapter->NdisMiniportBlock.EthDB)
{
EthDeleteFilter(Adapter->NdisMiniportBlock.EthDB);