From 1d1755e8f54e87208e8fd07b763596ebbcab0a12 Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Tue, 2 May 2017 17:18:37 +0000 Subject: [PATCH] [NTOS:MM] - Avoid a file object reference leak in MmCreateSection. CORE-6931 svn path=/trunk/; revision=74449 --- reactos/ntoskrnl/mm/section.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.17.1