Commit 1f67ef69 authored by Colin Ian King's avatar Colin Ian King Committed by Rafael J. Wysocki

ACPICA: debugger: fix memory leak on Pathname

ACPICA commit 1db14dc88f308119634d77ab9dcb6586b9fe4777

On the error return path when acpi_get_object_info fails the allocated
pathname is not free'd leading to a memory leak.  Free pathname
to fix this.

Link: https://github.com/acpica/acpica/commit/1db14dc8Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarBob Moore <robert.moore@intel.com>
Signed-off-by: default avatarLv Zheng <lv.zheng@intel.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent ed7f8bc9
...@@ -422,6 +422,7 @@ acpi_db_walk_for_execute(acpi_handle obj_handle, ...@@ -422,6 +422,7 @@ acpi_db_walk_for_execute(acpi_handle obj_handle,
status = acpi_get_object_info(obj_handle, &obj_info); status = acpi_get_object_info(obj_handle, &obj_info);
if (ACPI_FAILURE(status)) { if (ACPI_FAILURE(status)) {
ACPI_FREE(pathname);
return (status); return (status);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment