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>
This commit is contained in:
Bob Moore 2018-08-10 14:43:03 -07:00 committed by Rafael J. Wysocki
parent 8b23570ab0
commit 8b66fcfdee
1 changed files with 2 additions and 3 deletions

View File

@ -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
}
}