mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
[STREAM] Plug a leak on failure path. Spotted by Samuel Serapion using cppcheck. CORE-8211
svn path=/trunk/; revision=67007
This commit is contained in:
@@ -50,6 +50,7 @@ StreamClassAddDevice(
|
||||
{
|
||||
/* Failed to attach */
|
||||
IoDeleteDevice(DeviceObject);
|
||||
ExFreePool(ItemList);
|
||||
return STATUS_UNSUCCESSFUL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user