mirror of
https://github.com/reactos/reactos.git
synced 2024-08-06 03:14:36 +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:
parent
511de2ccea
commit
af9db65fcb
|
@ -50,6 +50,7 @@ StreamClassAddDevice(
|
|||
{
|
||||
/* Failed to attach */
|
||||
IoDeleteDevice(DeviceObject);
|
||||
ExFreePool(ItemList);
|
||||
return STATUS_UNSUCCESSFUL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue