[MOUNTMGR] Don't attempt to free random address on failure
[reactos.git] / drivers / filters / mountmgr / point.c
index b65c22c..d9a468f 100644 (file)
@@ -322,7 +322,7 @@ QueryPointsFromMemory(IN PDEVICE_EXTENSION DeviceExtension,
     {
         if (DeviceEntry == &(DeviceExtension->DeviceListHead))
         {
-            if (DeviceName.Buffer)
+            if (SymbolicName)
             {
                 FreePool(DeviceName.Buffer);
             }