mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +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);
|
||||
|
||||
if (SymbolicName)
|
||||
{
|
||||
FreePool(DeviceName.Buffer);
|
||||
}
|
||||
|
||||
return STATUS_BUFFER_OVERFLOW;
|
||||
}
|
||||
|
||||
|
@ -419,6 +424,11 @@ QueryPointsFromMemory(IN PDEVICE_EXTENSION DeviceExtension,
|
|||
}
|
||||
}
|
||||
|
||||
if (SymbolicName)
|
||||
{
|
||||
FreePool(DeviceName.Buffer);
|
||||
}
|
||||
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue