mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 00:16:40 +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)
|
if (!NT_SUCCESS(Status) && Status != STATUS_END_OF_FILE)
|
||||||
{
|
{
|
||||||
DPRINT1("CC failure: %lx\n", Status);
|
DPRINT1("CC failure: %lx\n", Status);
|
||||||
|
if (FileObject)
|
||||||
|
ObDereferenceObject(FileObject);
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
// Caching is initialized...
|
// Caching is initialized...
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue