diff options
author | Jesper Juhl <jesper.juhl@gmail.com> | 2007-07-18 22:48:03 (GMT) |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2007-07-19 00:46:20 (GMT) |
commit | e6917317c0f6a930442c40dc38a6f21710adf961 (patch) | |
tree | 3a7c898904c060e938731a2029072671e58d2241 /drivers/acpi/events/evrgnini.c | |
parent | 55f8f3cc4f7c47c7896e2ad08e29eccc292c0c68 (diff) | |
download | linux-e6917317c0f6a930442c40dc38a6f21710adf961.tar.xz |
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 <jesper.juhl@gmail.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/events/evrgnini.c')
-rw-r--r-- | drivers/acpi/events/evrgnini.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/acpi/events/evrgnini.c b/drivers/acpi/events/evrgnini.c index 400d90f..23ee7bc 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); } |