projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[MOUNTMGR] QueryPointsFromMemory(): Do not leak DeviceName.Buffer
[reactos.git]
/
drivers
/
filters
/
mountmgr
/
point.c
diff --git
a/drivers/filters/mountmgr/point.c
b/drivers/filters/mountmgr/point.c
index
198e0a5
..
373ade7
100644
(file)
--- a/
drivers/filters/mountmgr/point.c
+++ b/
drivers/filters/mountmgr/point.c
@@
-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;
}