summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>2001-01-22 05:33:36 +0000
committermsmith <msmith@FreeBSD.org>2001-01-22 05:33:36 +0000
commit71aff7f1c71bce310febb6c1d32660f8267e1c4a (patch)
tree4f0dd94a72096fe883cc4b4f2f67a96c057ce6a7 /sys/dev/acpica
parent2a8a2cb55a926c0a387a26af2e4561aeeb6910a5 (diff)
downloadFreeBSD-src-71aff7f1c71bce310febb6c1d32660f8267e1c4a.zip
FreeBSD-src-71aff7f1c71bce310febb6c1d32660f8267e1c4a.tar.gz
Plug a memory leak in AcpiOsDeleteSemaphore where the mutex is not properly
destroyed. Submitted by: bmilekic
Diffstat (limited to 'sys/dev/acpica')
-rw-r--r--sys/dev/acpica/Osd/OsdSynch.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/acpica/Osd/OsdSynch.c b/sys/dev/acpica/Osd/OsdSynch.c
index de532ca..154bce9 100644
--- a/sys/dev/acpica/Osd/OsdSynch.c
+++ b/sys/dev/acpica/Osd/OsdSynch.c
@@ -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);
}
OpenPOWER on IntegriCloud