mirror of
https://github.com/reactos/reactos.git
synced 2025-06-11 04:47:22 +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
1 changed files with 1 additions and 0 deletions
|
@ -50,6 +50,7 @@ StreamClassAddDevice(
|
||||||
{
|
{
|
||||||
/* Failed to attach */
|
/* Failed to attach */
|
||||||
IoDeleteDevice(DeviceObject);
|
IoDeleteDevice(DeviceObject);
|
||||||
|
ExFreePool(ItemList);
|
||||||
return STATUS_UNSUCCESSFUL;
|
return STATUS_UNSUCCESSFUL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue