[ros-diffs] [cgutman] 40707: - Free NdisMiniportBlock.Resources when we receive a stop irp

cgutman at svn.reactos.org cgutman at svn.reactos.org
Sun Apr 26 07:43:07 CEST 2009


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/miniport.c?rev=40707&r1=40706&r2=40707&view=diff
==============================================================================
--- 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);



More information about the Ros-diffs mailing list