mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
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: 1db14dc8
Signed-off-by: Colin Ian King <[email protected]>
Signed-off-by: Bob Moore <[email protected]>
Signed-off-by: Lv Zheng <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
This commit is contained in:
parent
ed7f8bc91a
commit
1f67ef6994
1 changed files with 1 additions and 0 deletions
|
|
@ -422,6 +422,7 @@ acpi_db_walk_for_execute(acpi_handle obj_handle,
|
|||
|
||||
status = acpi_get_object_info(obj_handle, &obj_info);
|
||||
if (ACPI_FAILURE(status)) {
|
||||
ACPI_FREE(pathname);
|
||||
return (status);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue