https://git.reactos.org/?p=reactos.git;a=commitdiff;h=58402b67300e24e8822f7a...
commit 58402b67300e24e8822f7a1dd1f3997014ed25cf Author: Trevor Thompson tmt256@email.vccs.edu AuthorDate: Sat May 13 09:17:06 2017 +0000
[NTFS] - Fix a bug with last commit, as spotted by Pierre.
svn path=/branches/GSoC_2016/NTFS/; revision=74525 --- drivers/filesystems/ntfs/mft.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/filesystems/ntfs/mft.c b/drivers/filesystems/ntfs/mft.c index 1e23675a0c..4dba9c66cd 100644 --- a/drivers/filesystems/ntfs/mft.c +++ b/drivers/filesystems/ntfs/mft.c @@ -437,7 +437,7 @@ SetAttributeDataLength(PFILE_OBJECT FileObject, if (!NT_SUCCESS(Status)) { DPRINT1("ERROR: Unable to migrate resident attribute!\n"); - if(AttribData != NULL) + if (AttribDataSize.QuadPart > 0) ExFreePoolWithTag(AttribData, TAG_NTFS); return Status; }