projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26627a4
)
[NTOSKRNL]
author
Pierre Schweitzer
<pierre@reactos.org>
Sun, 27 Nov 2016 20:11:30 +0000
(20:11 +0000)
committer
Pierre Schweitzer
<pierre@reactos.org>
Sun, 27 Nov 2016 20:11:30 +0000
(20:11 +0000)
Don't leak FO reference on failure.
Fixes kmtest:NtCreateSection unloading.
Dedicated to Thomas.
CORE-11819
CORE-12475
svn path=/trunk/; revision=73399
reactos/ntoskrnl/mm/section.c
patch
|
blob
|
history
diff --git
a/reactos/ntoskrnl/mm/section.c
b/reactos/ntoskrnl/mm/section.c
index
1bfcfb4
..
22d3b99
100644
(file)
--- a/
reactos/ntoskrnl/mm/section.c
+++ b/
reactos/ntoskrnl/mm/section.c
@@
-5077,6
+5077,8
@@
MmCreateSection (OUT PVOID * Section,
if (!NT_SUCCESS(Status) && Status != STATUS_END_OF_FILE)
{
DPRINT1("CC failure: %lx\n", Status);
+ if (FileObject)
+ ObDereferenceObject(FileObject);
return Status;
}
// Caching is initialized...