mirror of
https://github.com/reactos/reactos.git
synced 2025-06-04 17:00:31 +00:00
[NTOSKRNL]
Don't leak FO reference on failure. Fixes kmtest:NtCreateSection unloading. Dedicated to Thomas. CORE-11819 CORE-12475 svn path=/trunk/; revision=73399
This commit is contained in:
parent
26627a49b0
commit
bb759c3378
1 changed files with 2 additions and 0 deletions
|
@ -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...
|
||||
|
|
Loading…
Reference in a new issue