diff options
author | Bob Moore <robert.moore@intel.com> | 2018-08-11 00:43:03 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2018-08-15 00:49:13 +0300 |
commit | 8b66fcfdee683072d416b6f12a9be6acd81f20ba (patch) | |
tree | 57c31d07386d89c4522ada7c43bd2566c74eac88 /drivers/acpi/acpica | |
parent | 8b23570ab001c1982c8a068cde468ff067255314 (diff) | |
download | linux-8b66fcfdee683072d416b6f12a9be6acd81f20ba.tar.xz |
ACPICA: acpiexec: fix a small memory leak regression
Eliminates warnings only seen when acpiexec exits.
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/acpica')
-rw-r--r-- | drivers/acpi/acpica/dsfield.c | 5 |
1 files changed, 2 insertions, 3 deletions
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 } } |