s_info.selected_profile = NULL;
EINA_LIST_FOREACH(ad->profile_list, elist, profile_h) {
- apn = name = NULL;
+ apn = name = proxy_address = id = NULL;
connection_profile_get_cellular_apn(profile_h, &apn);
connection_profile_get_name(profile_h, &name);
connection_profile_get_proxy_address(profile_h,
item_data = (Setting_GenGroupItem_Data *)
calloc(1, sizeof(Setting_GenGroupItem_Data));
- setting_retvm_if(!item_data, SETTING_RETURN_FAIL,
- "calloc failed");
+ if (0 == item_data) {
+ SETTING_TRACE_ERROR("calloc failed");
+ G_FREE(apn);
+ G_FREE(name);
+ G_FREE(proxy_address);
+ G_FREE(id);
+ return SETTING_RETURN_FAIL;
+ }
+
item_data->keyStr = (char *)g_strdup(name);
item_data->swallow_type =
SWALLOW_TYPE_1RADIO_RIGHT_PROPAGATE_EVENTS_SET;
G_FREE(name);
G_FREE(proxy_address);
G_FREE(id);
+
idx++;
}
continue;
apn = name = proxy_address = id = NULL;
connection_profile_get_cellular_apn(profile_h, &apn);
- if (isEmptyStr(apn))
+ if (isEmptyStr(apn)) {
+ G_FREE(apn);
continue;
+ }
connection_profile_get_name(profile_h, &name);
- if (isEmptyStr(name))
+ if (isEmptyStr(name)) {
+ G_FREE(apn);
+ G_FREE(name);
continue;
+ }
connection_profile_get_proxy_address(profile_h,
CONNECTION_ADDRESS_FAMILY_IPV4, &proxy_address);
connection_profile_get_id(profile_h, &id);
if (0 == item_data) {
SETTING_TRACE_ERROR("calloc failed");
G_FREE(apn);
+ G_FREE(name);
+ G_FREE(proxy_address);
+ G_FREE(id);
return;
}
item_data->keyStr = (char *)g_strdup(name);
s_info.profile_del_list = eina_list_append(s_info.profile_del_list,
item_data);
+ G_FREE(apn);
+ G_FREE(name);
+ G_FREE(proxy_address);
+ G_FREE(id);
+
idx++;
}
elm_object_disabled_set(allbtn, EINA_TRUE);
SETTING_TRACE("To disable");
}
- G_FREE(apn);
- G_FREE(name);
- G_FREE(proxy_address);
- G_FREE(id);
+
return;
}