mirror of
https://github.com/acpica/acpica/
synced 2025-02-14 12:34:50 +03:00
Fix possible memory leak
date 2004.11.03.19.25.00; author rmoore1; state Exp;
This commit is contained in:
parent
bfb4ba2464
commit
2512b38dbe
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user