[NTOS:MM]
authorThomas Faber <thomas.faber@reactos.org>
Tue, 2 May 2017 17:18:37 +0000 (17:18 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Tue, 2 May 2017 17:18:37 +0000 (17:18 +0000)
- Avoid a file object reference leak in MmCreateSection.
CORE-6931

svn path=/trunk/; revision=74449

reactos/ntoskrnl/mm/section.c

index 22d3b99..dc78680 100644 (file)
@@ -5161,6 +5161,8 @@ MmCreateSection (OUT PVOID  * Section,
                                          MaximumSize,
                                          SectionPageProtection,
                                          AllocationAttributes);
+        if (FileObject)
+            ObDereferenceObject(FileObject);
     }
 
     return Status;