summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-04-23 09:13:19 -0400
committerChristopher Michael <cp.michael@samsung.com>2019-04-23 09:14:27 -0400
commit281e90cda5748eed38bd7629ba80bbd1f89ffc28 (patch)
tree04664572f7cc9613e35cbc2887575e3d15a1416f
parentd40b18540e16df508ad2cf07d7bdc83f7f6669fa (diff)
elm_atspi_bridget: Fix resource leak
Coverity reports and 'req' leaks here so we need to unref the eldbus message object if we are exiting this function. Fixes CID1399424 @fix
-rw-r--r--src/lib/elementary/elm_atspi_bridge.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/elementary/elm_atspi_bridge.c b/src/lib/elementary/elm_atspi_bridge.c
index c689557d6c..9341b64981 100644
--- a/src/lib/elementary/elm_atspi_bridge.c
+++ b/src/lib/elementary/elm_atspi_bridge.c
@@ -4688,7 +4688,11 @@ _elm_atspi_bridge_key_filter(void *data, void *loop EINA_UNUSED, int type, void
4688 } 4688 }
4689 4689
4690 ke = _key_event_info_new(type, key_event, bridge); 4690 ke = _key_event_info_new(type, key_event, bridge);
4691 if (!ke) return EINA_TRUE; 4691 if (!ke)
4692 {
4693 eldbus_message_unref(req);
4694 return EINA_TRUE;
4695 }
4692 4696
4693 iter = eldbus_message_iter_get(req); 4697 iter = eldbus_message_iter_get(req);
4694 _iter_marshall_key_event(iter, ke); 4698 _iter_marshall_key_event(iter, ke);