Browse Source

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>
Jesper Juhl 18 years ago
parent
commit
e6917317c0
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/acpi/events/evrgnini.c

+ 1 - 0
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);
 	}