projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed7f8bc
)
ACPICA: debugger: fix memory leak on Pathname
author
Colin Ian King
<
[email protected]
>
Wed, 26 Apr 2017 08:18:25 +0000
(16:18 +0800)
committer
Rafael J. Wysocki
<
[email protected]
>
Wed, 26 Apr 2017 22:31:00 +0000
(
00:31
+0200)
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 <
[email protected]
>
Signed-off-by: Bob Moore <
[email protected]
>
Signed-off-by: Lv Zheng <
[email protected]
>
Signed-off-by: Rafael J. Wysocki <
[email protected]
>
drivers/acpi/acpica/dbmethod.c
patch
|
blob
|
history
diff --git
a/drivers/acpi/acpica/dbmethod.c
b/drivers/acpi/acpica/dbmethod.c
index 15c8237b8a80a711573300cf504720bd3e6c578d..df62c9245efc2404d30f0af8465c75a59d4cc7a5 100644
(file)
--- 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,
status = acpi_get_object_info(obj_handle, &obj_info);
if (ACPI_FAILURE(status)) {
+ ACPI_FREE(pathname);
return (status);
}