mirror of
https://github.com/acpica/acpica/
synced 2024-12-26 04:16:58 +03:00
Fix several possible memory leaks in the GPE handling.
This change fixes several potential memory leaks in the error paths of the GPE handling code. Lv Zheng.
This commit is contained in:
parent
b30264449d
commit
6ac115c242
@ -621,6 +621,7 @@ AcpiEvAsynchExecuteGpeMethod (
|
||||
Status = AcpiUtAcquireMutex (ACPI_MTX_EVENTS);
|
||||
if (ACPI_FAILURE (Status))
|
||||
{
|
||||
ACPI_FREE (LocalGpeEventInfo);
|
||||
return_VOID;
|
||||
}
|
||||
|
||||
@ -629,6 +630,7 @@ AcpiEvAsynchExecuteGpeMethod (
|
||||
if (!AcpiEvValidGpeEvent (GpeEventInfo))
|
||||
{
|
||||
Status = AcpiUtReleaseMutex (ACPI_MTX_EVENTS);
|
||||
ACPI_FREE (LocalGpeEventInfo);
|
||||
return_VOID;
|
||||
}
|
||||
|
||||
@ -642,6 +644,7 @@ AcpiEvAsynchExecuteGpeMethod (
|
||||
Status = AcpiUtReleaseMutex (ACPI_MTX_EVENTS);
|
||||
if (ACPI_FAILURE (Status))
|
||||
{
|
||||
ACPI_FREE (LocalGpeEventInfo);
|
||||
return_VOID;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user