Author: tfaber
Date: Tue May 2 17:18:37 2017
New Revision: 74449
URL:
http://svn.reactos.org/svn/reactos?rev=74449&view=rev
Log:
[NTOS:MM]
- Avoid a file object reference leak in MmCreateSection.
CORE-6931
Modified:
trunk/reactos/ntoskrnl/mm/section.c
Modified: trunk/reactos/ntoskrnl/mm/section.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/section.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/section.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/section.c [iso-8859-1] Tue May 2 17:18:37 2017
@@ -5161,6 +5161,8 @@
MaximumSize,
SectionPageProtection,
AllocationAttributes);
+ if (FileObject)
+ ObDereferenceObject(FileObject);
}
return Status;