projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c8ca6f
)
[NTOS:MM]
author
Thomas Faber
<thomas.faber@reactos.org>
Tue, 2 May 2017 17:18:37 +0000
(17:18 +0000)
committer
Thomas 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
patch
|
blob
|
history
diff --git
a/reactos/ntoskrnl/mm/section.c
b/reactos/ntoskrnl/mm/section.c
index
22d3b99
..
dc78680
100644
(file)
--- 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;