Skip to content

Commit

Permalink
ACPICA: fix memory leak in acpi_ev_pci_config_region_setup() error path
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jesper Juhl authored and Len Brown committed Jul 19, 2007
1 parent 55f8f3c commit e691731
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/acpi/events/evrgnini.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit e691731

Please sign in to comment.