Change-Id: Iaa8072390d470a77bda655af99565f2eed774511
Signed-off-by: anuj.bhumiya <anuj.bhumiya@samsung.com>
for (i = 0; i < total; i++)
g_free(info.sub_list[i]);
- if (info.appkey_list) {
+ if (info.sub_list) {
g_free(info.sub_list);
g_variant_iter_free(iter);
}
l = g_slist_find_custom(mesh_apps, net_uuid,
__mesh_compare_network_uuid);
+ if (!l) {
+ g_free(net_uuid);
+ return NULL;
+ }
app = l->data;
memset(&ev, 0, sizeof(ev));
meshcfg_app *app;
l = g_slist_find_custom(mesh_apps, net_uuid,
__mesh_compare_network_uuid);
+ if (!l)
+ return;
app = l->data;
if (app->scan_timer_id > 0) {
continue;
str = json_object_get_string(jval);
+ if (!str)
+ continue;
memcpy(buf, str + 6, 5);
BT_INFO("Mesh: JSON Group string:[%s]", buf);
if (sscanf(buf, "%04hx", &addr) != 1)