From 8b66fcfdee683072d416b6f12a9be6acd81f20ba Mon Sep 17 00:00:00 2001 From: Bob Moore Date: Fri, 10 Aug 2018 14:43:03 -0700 Subject: ACPICA: acpiexec: fix a small memory leak regression Eliminates warnings only seen when acpiexec exits. Signed-off-by: Bob Moore Signed-off-by: Erik Schmauss Signed-off-by: Rafael J. Wysocki --- drivers/acpi/acpica/dsfield.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'drivers/acpi/acpica/dsfield.c') diff --git a/drivers/acpi/acpica/dsfield.c b/drivers/acpi/acpica/dsfield.c index 5581300927de..30fe89545d6a 100644 --- a/drivers/acpi/acpica/dsfield.c +++ b/drivers/acpi/acpica/dsfield.c @@ -417,10 +417,9 @@ acpi_ds_get_field_names(struct acpi_create_field_info *info, acpi_ns_get_attached_object (info->field_node), &result_desc); - ACPI_FREE(name_path); - acpi_ut_remove_reference - (obj_desc); } + acpi_ut_remove_reference(obj_desc); + ACPI_FREE(name_path); #endif } } -- cgit v1.2.3