From 7601011f4ed578ae4a15a55298ebbe96fe3a1129 Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Sat, 21 Oct 2017 14:13:44 +0200 Subject: [PATCH] [MOUNTMGR] Don't attempt to free random address on failure CID 515354 --- drivers/filters/mountmgr/point.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/filters/mountmgr/point.c b/drivers/filters/mountmgr/point.c index b65c22cab7b..d9a468f32c2 100644 --- a/drivers/filters/mountmgr/point.c +++ b/drivers/filters/mountmgr/point.c @@ -322,7 +322,7 @@ QueryPointsFromMemory(IN PDEVICE_EXTENSION DeviceExtension, { if (DeviceEntry == &(DeviceExtension->DeviceListHead)) { - if (DeviceName.Buffer) + if (SymbolicName) { FreePool(DeviceName.Buffer); }