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>
This commit is contained in:
Jesper Juhl 2007-07-19 00:48:03 +02:00 committed by Len Brown
parent 55f8f3cc4f
commit e6917317c0
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}