mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 22:52:54 +00:00
[MOUNTMGR] QueryPointsFromMemory(): Do not leak DeviceName.Buffer
Follow-up to 7601011f4e
.
This commit is contained in:
parent
9ad0dd1856
commit
9f8e5d1ce0
1 changed files with 10 additions and 0 deletions
|
@ -344,6 +344,11 @@ QueryPointsFromMemory(IN PDEVICE_EXTENSION DeviceExtension,
|
||||||
{
|
{
|
||||||
Irp->IoStatus.Information = sizeof(MOUNTMGR_MOUNT_POINTS);
|
Irp->IoStatus.Information = sizeof(MOUNTMGR_MOUNT_POINTS);
|
||||||
|
|
||||||
|
if (SymbolicName)
|
||||||
|
{
|
||||||
|
FreePool(DeviceName.Buffer);
|
||||||
|
}
|
||||||
|
|
||||||
return STATUS_BUFFER_OVERFLOW;
|
return STATUS_BUFFER_OVERFLOW;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -419,6 +424,11 @@ QueryPointsFromMemory(IN PDEVICE_EXTENSION DeviceExtension,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (SymbolicName)
|
||||||
|
{
|
||||||
|
FreePool(DeviceName.Buffer);
|
||||||
|
}
|
||||||
|
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue