mirror of
https://github.com/acpica/acpica/
synced 2025-02-25 18:04:08 +03:00
Fix possible memory leak in GPE init error path.
Some GPE blocks were not deleted. ACPICA BZ 1018. Tomasz Nowicki <tomasz.nowicki@linaro.org>
This commit is contained in:
parent
3d39b6d688
commit
11c53b97ef
@ -492,6 +492,8 @@ AcpiEvCreateGpeBlock (
|
||||
Status = AcpiEvInstallGpeBlock (GpeBlock, InterruptNumber);
|
||||
if (ACPI_FAILURE (Status))
|
||||
{
|
||||
ACPI_FREE (GpeBlock->RegisterInfo);
|
||||
ACPI_FREE (GpeBlock->EventInfo);
|
||||
ACPI_FREE (GpeBlock);
|
||||
return_ACPI_STATUS (Status);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user