diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-04-26 04:18:25 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-04-26 18:31:00 -0400 |
commit | 1f67ef69941e252d5a3558426338a84acce73d89 (patch) | |
tree | 60175d97d38ea76091dc0f13e2d752bbfa96e663 | |
parent | ed7f8bc91a8df96662b21accc9a5abe2c292014a (diff) |
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/1db14dc8
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r-- | drivers/acpi/acpica/dbmethod.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/acpi/acpica/dbmethod.c b/drivers/acpi/acpica/dbmethod.c index 15c8237b8a80..df62c9245efc 100644 --- a/drivers/acpi/acpica/dbmethod.c +++ b/drivers/acpi/acpica/dbmethod.c | |||
@@ -422,6 +422,7 @@ acpi_db_walk_for_execute(acpi_handle obj_handle, | |||
422 | 422 | ||
423 | status = acpi_get_object_info(obj_handle, &obj_info); | 423 | status = acpi_get_object_info(obj_handle, &obj_info); |
424 | if (ACPI_FAILURE(status)) { | 424 | if (ACPI_FAILURE(status)) { |
425 | ACPI_FREE(pathname); | ||
425 | return (status); | 426 | return (status); |
426 | } | 427 | } |
427 | 428 | ||