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:
parent
55f8f3cc4f
commit
e6917317c0
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue