[NTFS]
authorPierre Schweitzer <pierre@reactos.org>
Thu, 3 Sep 2015 12:57:04 +0000 (12:57 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Thu, 3 Sep 2015 12:57:04 +0000 (12:57 +0000)
Remove deadcode CID 1321946

svn path=/trunk/; revision=68934

reactos/drivers/filesystems/ntfs/rw.c

index cfccd04..572bd85 100644 (file)
@@ -75,10 +75,6 @@ NtfsReadFile(PDEVICE_EXTENSION DeviceExt,
     if (FileRecord == NULL)
     {
         DPRINT1("Not enough memory!\n");
-        if (AllocatedBuffer)
-        {
-            ExFreePoolWithTag(ReadBuffer, TAG_NTFS);
-        }
         return STATUS_INSUFFICIENT_RESOURCES;
     }
 
@@ -87,10 +83,6 @@ NtfsReadFile(PDEVICE_EXTENSION DeviceExt,
     {
         DPRINT1("Can't find record!\n");
         ExFreePoolWithTag(FileRecord, TAG_NTFS);
-        if (AllocatedBuffer)
-        {
-            ExFreePoolWithTag(ReadBuffer, TAG_NTFS);
-        }
         return Status;
     }