Plug a memory leak in AcpiOsDeleteSemaphore where the mutex is not properly

destroyed.

Submitted by:	bmilekic
This commit is contained in:
Mike Smith 2001-01-22 05:33:36 +00:00
parent be821963c1
commit 0c645db4c0

View File

@ -73,6 +73,8 @@ AcpiOsCreateSemaphore(UINT32 MaxUnits, UINT32 InitialUnits, ACPI_HANDLE *OutHand
ACPI_STATUS
AcpiOsDeleteSemaphore (ACPI_HANDLE Handle)
{
struct acpi_semaphore *as = (struct acpi_semaphore *)Handle;
mtx_destroy(&as->as_mtx);
free(Handle, M_ACPISEM);
return(AE_OK);
}