Author: cgutman
Date: Wed Dec 17 06:15:31 2008
New Revision: 38145
URL:
http://svn.reactos.org/svn/reactos?rev=38145&view=rev
Log:
- Fix a memory leak
Modified:
branches/aicom-network-fixes/lib/drivers/ip/network/transmit.c
Modified: branches/aicom-network-fixes/lib/drivers/ip/network/transmit.c
URL:
http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/lib/drivers…
==============================================================================
--- branches/aicom-network-fixes/lib/drivers/ip/network/transmit.c [iso-8859-1]
(original)
+++ branches/aicom-network-fixes/lib/drivers/ip/network/transmit.c [iso-8859-1] Wed Dec 17
06:15:31 2008
@@ -216,7 +216,13 @@
return NDIS_STATUS_FAILURE;
}
- return IPSendFragment(IFC->NdisPacket, NCE, IFC);
+ if (!NT_SUCCESS((NdisStatus = IPSendFragment(IFC->NdisPacket, NCE, IFC))))
+ {
+ FreeNdisPacket(IFC->NdisPacket);
+ ExFreePool(IFC);
+ }
+
+ return NdisStatus;
}
NTSTATUS IPSendDatagram(PIP_PACKET IPPacket, PNEIGHBOR_CACHE_ENTRY NCE,