Fix possible memory leak

date	2004.11.03.19.25.00;	author rmoore1;	state Exp;
This commit is contained in:
aystarik 2005-06-29 18:18:35 +00:00
parent bfb4ba2464
commit 2512b38dbe

View File

@ -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;
}
}