raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=891ae89d16b7624f5289dd92929d15355ff8a6ee

commit 891ae89d16b7624f5289dd92929d15355ff8a6ee
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Sat Jul 9 11:49:59 2016 +0900

    elm atspi bridge - fix resource leak
    
    previous fix brought out a new leak not found before by coverity.
    
    fix CID 1353602
---
 src/lib/elementary/elm_atspi_bridge.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/elementary/elm_atspi_bridge.c 
b/src/lib/elementary/elm_atspi_bridge.c
index ecf0495..fbdbe8f 100644
--- a/src/lib/elementary/elm_atspi_bridge.c
+++ b/src/lib/elementary/elm_atspi_bridge.c
@@ -621,7 +621,7 @@ _accessible_attributes_get(const Eldbus_Service_Interface 
*iface, const Eldbus_M
    EINA_LIST_FOREACH(attrs, l, attr)
      {
         iter_entry = eldbus_message_iter_container_new(iter_dict, 'e', NULL);
-        EINA_SAFETY_ON_NULL_RETURN_VAL(iter_entry, NULL);
+        if (!iter_entry) goto error;
         eldbus_message_iter_arguments_append(iter_entry, "ss", attr->key, 
attr->value);
         eldbus_message_iter_container_close(iter_dict, iter_entry);
      }

-- 


Reply via email to