From: Jesper Juhl Date: Wed, 18 Jul 2007 22:48:03 +0000 (+0200) Subject: ACPICA: fix memory leak in acpi_ev_pci_config_region_setup() error path X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e6917317c0f6a930442c40dc38a6f21710adf961;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git ACPICA: fix memory leak in acpi_ev_pci_config_region_setup() error path acpi_ev_pci_config_region_setup() leaks pci_id in the error case of "if (!pci_device_node)" Signed-off-by: Jesper Juhl Signed-off-by: Len Brown --- diff --git a/drivers/acpi/events/evrgnini.c b/drivers/acpi/events/evrgnini.c index 400d90fca966..23ee7bc4a705 100644 --- a/drivers/acpi/events/evrgnini.c +++ b/drivers/acpi/events/evrgnini.c @@ -284,6 +284,7 @@ acpi_ev_pci_config_region_setup(acpi_handle handle, } if (!pci_device_node) { + ACPI_FREE(pci_id); return_ACPI_STATUS(AE_AML_OPERAND_TYPE); }