Author: pschweitzer
Date: Mon Oct 6 19:28:41 2014
New Revision: 64576
URL:
http://svn.reactos.org/svn/reactos?rev=64576&view=rev
Log:
[NTFS]
Not being working (yet) doesn't mean you can leak mem!
Modified:
trunk/reactos/drivers/filesystems/ntfs/mft.c
Modified: trunk/reactos/drivers/filesystems/ntfs/mft.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/m…
==============================================================================
--- trunk/reactos/drivers/filesystems/ntfs/mft.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/ntfs/mft.c [iso-8859-1] Mon Oct 6 19:28:41 2014
@@ -682,6 +682,7 @@
if (!NT_SUCCESS(Status))
{
DPRINT("NtfsLookupFile: Can't read MFT record\n");
+ ExFreePoolWithTag(FileRecord, TAG_NTFS);
return Status;
}
@@ -689,6 +690,7 @@
if (!NT_SUCCESS(Status))
{
DPRINT("NtfsLookupFile: Can't find data attribute\n");
+ ExFreePoolWithTag(FileRecord, TAG_NTFS);
return Status;
}