Author: akhaldi
Date: Thu Apr 9 09:39:19 2015
New Revision: 67107
URL:
http://svn.reactos.org/svn/reactos?rev=67107&view=rev
Log:
[NDISUIO] Plug a leak on failure path. Spotted by Samuel Serapion using cppcheck.
CORE-8210
Modified:
trunk/reactos/drivers/network/ndisuio/protocol.c
Modified: trunk/reactos/drivers/network/ndisuio/protocol.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/ndisuio/pr…
==============================================================================
--- trunk/reactos/drivers/network/ndisuio/protocol.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/ndisuio/protocol.c [iso-8859-1] Thu Apr 9 09:39:19
2015
@@ -187,6 +187,7 @@
if (Status != NDIS_STATUS_SUCCESS)
{
DPRINT1("Failed to transfer data with status 0x%x\n", Status);
+ ExFreePool(PacketBuffer);
CleanupAndFreePacket(Packet, TRUE);
return NDIS_STATUS_NOT_ACCEPTED;
}