From: sooyeon.kim Date: Tue, 1 Aug 2017 01:52:46 +0000 (+0900) Subject: Fix SVACE issue X-Git-Tag: submit/tizen_3.0/20170802.064237^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_3.0;p=platform%2Fcore%2Fuifw%2Fvoice-control-elm.git Fix SVACE issue Change-Id: Icd9cea410575cd19115168dcf7f0f788b73ada44 Signed-off-by: sooyeon.kim --- diff --git a/src/vc_elm_efl_dump.c b/src/vc_elm_efl_dump.c index 03d4e4b..ee673a5 100644 --- a/src/vc_elm_efl_dump.c +++ b/src/vc_elm_efl_dump.c @@ -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;