From 287525992a4e808d5e019393c95518bb9cb86283 Mon Sep 17 00:00:00 2001 From: Filip Navara Date: Sun, 8 Aug 2004 10:46:20 +0000 Subject: [PATCH] - Fix section object dereferencing in NtCreateSection. svn path=/trunk/; revision=10416 --- reactos/ntoskrnl/mm/section.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/reactos/ntoskrnl/mm/section.c b/reactos/ntoskrnl/mm/section.c index 6cc0b503d9f..f16b1f315d4 100644 --- a/reactos/ntoskrnl/mm/section.c +++ b/reactos/ntoskrnl/mm/section.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* $Id: section.c,v 1.156 2004/08/05 19:59:13 navaraf Exp $ +/* $Id: section.c,v 1.157 2004/08/08 10:46:20 navaraf Exp $ * * PROJECT: ReactOS kernel * FILE: ntoskrnl/mm/section.c @@ -2957,10 +2957,7 @@ NtCreateSection (OUT PHANDLE SectionHandle, 0, NULL, SectionHandle); - if (!NT_SUCCESS(Status)) - { - ObDereferenceObject(SectionObject); - } + ObDereferenceObject(SectionObject); } return Status;