From 2512b38dbe186d3e501ae749c88ab2678a6ddc30 Mon Sep 17 00:00:00 2001 From: aystarik Date: Wed, 29 Jun 2005 18:18:35 +0000 Subject: [PATCH] Fix possible memory leak date 2004.11.03.19.25.00; author rmoore1; state Exp; --- source/components/namespace/nsaccess.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/components/namespace/nsaccess.c b/source/components/namespace/nsaccess.c index 56456c951..9ba4e8379 100644 --- a/source/components/namespace/nsaccess.c +++ b/source/components/namespace/nsaccess.c @@ -1,7 +1,7 @@ /******************************************************************************* * * Module Name: nsaccess - Top-level functions for accessing ACPI namespace - * $Revision: 1.183 $ + * $Revision: 1.184 $ * ******************************************************************************/ @@ -292,6 +292,7 @@ AcpiNsRootInitialize (void) 1, &ObjDesc->Mutex.Semaphore); if (ACPI_FAILURE (Status)) { + AcpiUtRemoveReference (ObjDesc); goto UnlockAndExit; } @@ -309,6 +310,7 @@ AcpiNsRootInitialize (void) &ObjDesc->Mutex.Semaphore); if (ACPI_FAILURE (Status)) { + AcpiUtRemoveReference (ObjDesc); goto UnlockAndExit; } }