Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e6917317 authored by Jesper Juhl's avatar Jesper Juhl Committed by Len Brown
Browse files

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: default avatarJesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 55f8f3cc
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);
	}