From: Thomas Faber Date: Tue, 2 May 2017 17:18:37 +0000 (+0000) Subject: [NTOS:MM] X-Git-Tag: ReactOS-0.4.6~785 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=1d1755e8f54e87208e8fd07b763596ebbcab0a12 [NTOS:MM] - Avoid a file object reference leak in MmCreateSection. CORE-6931 svn path=/trunk/; revision=74449 --- diff --git a/reactos/ntoskrnl/mm/section.c b/reactos/ntoskrnl/mm/section.c index 22d3b99acdd..dc786803b26 100644 --- a/reactos/ntoskrnl/mm/section.c +++ b/reactos/ntoskrnl/mm/section.c @@ -5161,6 +5161,8 @@ MmCreateSection (OUT PVOID * Section, MaximumSize, SectionPageProtection, AllocationAttributes); + if (FileObject) + ObDereferenceObject(FileObject); } return Status;