Skip to content

Commit

Permalink
ACPICA: acpiexec: fix a small memory leak regression
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bob Moore authored and Rafael J. Wysocki committed Aug 14, 2018
1 parent 8b23570 commit 8b66fcf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/acpi/acpica/dsfield.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 8b66fcf

Please sign in to comment.