mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-27 19:25:36 +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:
@@ -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...
|
||||
|
||||
Reference in New Issue
Block a user