aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Moore <robert.moore@intel.com>2018-08-10 14:43:03 -0700
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2018-08-14 23:49:13 +0200
commit8b66fcfdee683072d416b6f12a9be6acd81f20ba (patch)
tree57c31d07386d89c4522ada7c43bd2566c74eac88
parent8b23570ab001c1982c8a068cde468ff067255314 (diff)
downloadlinux-8b66fcfdee683072d416b6f12a9be6acd81f20ba.tar.gz
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>
-rw-r--r--drivers/acpi/acpica/dsfield.c5
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
}
}