[NTFS] - Fix a bug with last commit, as spotted by Pierre.

svn path=/branches/GSoC_2016/NTFS/; revision=74525
This commit is contained in:
Trevor Thompson 2017-05-13 09:17:06 +00:00 committed by Thomas Faber
parent c25b9747a1
commit 58402b6730

View file

@ -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;
}