[NTOS:MM] Fix file object bad referencing

This commit is contained in:
Jérôme Gardou 2020-12-04 09:17:21 +01:00
parent 2d3454a809
commit d9f7459bb1

View file

@ -3128,7 +3128,6 @@ MmCreateImageSection(PSECTION *SectionObject,
InterlockedExchangePointer(&FileObject->SectionObjectPointer->ImageSectionObject, NULL);
ExFreePoolWithTag(ImageSectionObject, TAG_MM_SECTION_SEGMENT);
MmDereferenceSegment(DataSectionObject);
ObDereferenceObject(FileObject);
ObDereferenceObject(Section);
return STATUS_ACCESS_DENIED;
}