Author: akhaldi
Date: Wed Apr 1 17:53:02 2015
New Revision: 67007
URL:
http://svn.reactos.org/svn/reactos?rev=67007&view=rev
Log:
[STREAM] Plug a leak on failure path. Spotted by Samuel Serapion using cppcheck.
CORE-8211
Modified:
trunk/reactos/drivers/wdm/audio/legacy/stream/driver.c
Modified: trunk/reactos/drivers/wdm/audio/legacy/stream/driver.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/legacy/s…
==============================================================================
--- trunk/reactos/drivers/wdm/audio/legacy/stream/driver.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/wdm/audio/legacy/stream/driver.c [iso-8859-1] Wed Apr 1
17:53:02 2015
@@ -50,6 +50,7 @@
{
/* Failed to attach */
IoDeleteDevice(DeviceObject);
+ ExFreePool(ItemList);
return STATUS_UNSUCCESSFUL;
}