[NTFS]
authorPierre Schweitzer <pierre@reactos.org>
Mon, 6 Oct 2014 19:28:41 +0000 (19:28 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Mon, 6 Oct 2014 19:28:41 +0000 (19:28 +0000)
Not being working (yet) doesn't mean you can leak mem!

svn path=/trunk/; revision=64576

reactos/drivers/filesystems/ntfs/mft.c

index 9b587f4..3ab7f37 100644 (file)
@@ -682,6 +682,7 @@ NtfsLookupFileAt(PDEVICE_EXTENSION Vcb,
     if (!NT_SUCCESS(Status))
     {
         DPRINT("NtfsLookupFile: Can't read MFT record\n");
+        ExFreePoolWithTag(FileRecord, TAG_NTFS);
         return Status;
     }
 
@@ -689,6 +690,7 @@ NtfsLookupFileAt(PDEVICE_EXTENSION Vcb,
     if (!NT_SUCCESS(Status))
     {
         DPRINT("NtfsLookupFile: Can't find data attribute\n");
+        ExFreePoolWithTag(FileRecord, TAG_NTFS);
         return Status;
     }