summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinwoo Kim <cinoo.kim@samsung.com>2020-04-13 11:17:19 +0900
committerWooHyun Jung <wh0705.jung@samsung.com>2020-04-13 11:17:19 +0900
commitb79b3eea00c7f7d7cd3268df4fc1bb8b5f66444e (patch)
tree69b0755caf55e5f16bbf5c4a940ee3fb86af5ea4
parentde943b82aabab0db8056152392502372e5587e6b (diff)
elm_atspi_bridge: fix memory leak
Summary: Dynamic memory is allocated by calling function 'eldbus_message_iter_container_new' and lost by returning without free. Reviewers: Hermet, woohyun, jsuya, herb Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11688
-rw-r--r--src/lib/elementary/elm_atspi_bridge.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_atspi_bridge.c b/src/lib/elementary/elm_atspi_bridge.c
index 0693fdb22a..ff0f35e102 100644
--- a/src/lib/elementary/elm_atspi_bridge.c
+++ b/src/lib/elementary/elm_atspi_bridge.c
@@ -1644,6 +1644,7 @@ _text_attributes_get(const Eldbus_Service_Interface *iface, const Eldbus_Message
1644 } 1644 }
1645 else 1645 else
1646 { 1646 {
1647 eldbus_message_iter_container_close(iter, iter_array);
1647 goto fail; 1648 goto fail;
1648 } 1649 }
1649 1650
@@ -1706,6 +1707,7 @@ _text_default_attributes_get(const Eldbus_Service_Interface *iface, const Eldbus
1706 else 1707 else
1707 { 1708 {
1708 eldbus_message_unref(ret); 1709 eldbus_message_unref(ret);
1710 eldbus_message_iter_container_close(iter, iter_array);
1709 return _dbus_invalid_ref_error_new(msg); 1711 return _dbus_invalid_ref_error_new(msg);
1710 } 1712 }
1711 1713