Fix SVACE issue 09/141509/2 accepted/tizen_3.0_common accepted/tizen_3.0_ivi accepted/tizen_3.0_mobile accepted/tizen_3.0_tv accepted/tizen_3.0_wearable tizen_3.0 accepted/tizen/3.0/common/20170803.140813 accepted/tizen/3.0/ivi/20170803.075613 accepted/tizen/3.0/mobile/20170803.075533 accepted/tizen/3.0/tv/20170803.075545 accepted/tizen/3.0/wearable/20170803.075600 submit/tizen_3.0/20170802.064237 submit/tizen_3.0/20170802.101042
authorsooyeon.kim <sooyeon.kim@samsung.com>
Tue, 1 Aug 2017 01:52:46 +0000 (10:52 +0900)
committersooyeon.kim <sooyeon.kim@samsung.com>
Wed, 2 Aug 2017 05:26:31 +0000 (14:26 +0900)
Change-Id: Icd9cea410575cd19115168dcf7f0f788b73ada44
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
src/vc_elm_efl_dump.c

index 03d4e4b79032ba1d5885663841b65d84bb6dfc7b..ee673a5f112270da6e2189d1798e57a4ea5c84d7 100644 (file)
@@ -140,6 +140,10 @@ _edje_file_info_save(Ea_Util_Mgr *util_mgr, const Evas_Object *obj)
                EINA_LIST_FOREACH(parts, l, pname) {
                        if ((pobj = edje_object_part_object_get(obj, pname))) {
                                edje_info = malloc(sizeof(Edje_Info));
+                               if (!edje_info) {
+                                       VC_ELM_LOG_ERR("[ERROR] Fail to allocate memory");
+                                       return;
+                               }
                                edje_info->obj = pobj;
                                edje_info->part_name = strdup(pname);
                                ret = edje_object_part_state_get(obj, edje_info->part_name, &val);
@@ -186,6 +190,10 @@ _obj_tree_items(Ea_Util_Mgr *util_mgr, Evas_Object *obj, Object_Info *parent)
        if (is_clip) goto next;
 
        object_info = calloc(1, sizeof(Object_Info));
+       if (!object_info) {
+               VC_ELM_LOG_ERR("[ERROR] Fail to allocate memory");
+               return;
+       }
 
        object_info->parent = parent;
 
@@ -352,6 +360,10 @@ _obj_tree_items_exclude_unfocusable_text(Ea_Util_Mgr *util_mgr, Evas_Object *obj
        }
 
        object_info = calloc(1, sizeof(Object_Info));
+       if (!object_info) {
+               VC_ELM_LOG_ERR("[ERROR] Fail to allocate memory");
+               return;
+       }
 
        object_info->parent = parent;