[FASTFAT]
authorPierre Schweitzer <pierre@reactos.org>
Sat, 4 Feb 2017 19:37:40 +0000 (19:37 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Sat, 4 Feb 2017 19:37:40 +0000 (19:37 +0000)
vfatMakeFCBFromDirEntry(), use appropriate tag on free.
Dedicated to Thomas :-)

svn path=/trunk/; revision=73683

reactos/drivers/filesystems/fastfat/fcb.c

index 1deb410..4808d62 100644 (file)
@@ -732,7 +732,7 @@ vfatMakeFCBFromDirEntry(
         if (!NT_SUCCESS(Status))
         {
             vfatReleaseFCB(vcb, rcFCB);
         if (!NT_SUCCESS(Status))
         {
             vfatReleaseFCB(vcb, rcFCB);
-            ExFreePool(NameU.Buffer);
+            ExFreePoolWithTag(NameU.Buffer, TAG_FCB);
             return Status;
         }
     }
             return Status;
         }
     }
@@ -741,7 +741,7 @@ vfatMakeFCBFromDirEntry(
     vfatAddFCBToTable(vcb, rcFCB);
     *fileFCB = rcFCB;
 
     vfatAddFCBToTable(vcb, rcFCB);
     *fileFCB = rcFCB;
 
-    ExFreePool(NameU.Buffer);
+    ExFreePoolWithTag(NameU.Buffer, TAG_FCB);
     return STATUS_SUCCESS;
 }
 
     return STATUS_SUCCESS;
 }