ACPICA: fix memory leak in acpi_ev_pci_config_region_setup() error path
authorJesper Juhl <[email protected]>
Wed, 18 Jul 2007 22:48:03 +0000 (00:48 +0200)
committerLen Brown <[email protected]>
Thu, 19 Jul 2007 00:46:20 +0000 (20:46 -0400)
acpi_ev_pci_config_region_setup() leaks pci_id
in the error case of "if (!pci_device_node)"

Signed-off-by: Jesper Juhl <[email protected]>
Signed-off-by: Len Brown <[email protected]>
drivers/acpi/events/evrgnini.c

index 400d90fca966ca9c08aa2c68233d56f47790bc00..23ee7bc4a705459579f5122c31ea368bb43235d8 100644 (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);
        }