if (strlen(timeout))
duration = (unsigned short)strtol(timeout, NULL, 10);
+ if (found_group_list) {
+ g_list_free_full(found_group_list, _destroy_mdg_group_info);
+ found_group_list = NULL;
+ }
+
ret = mdg_group_find(handle, duration, _group_found_cb, _group_finish_cb, NULL);
if (MDG_ERROR_NONE != ret) {
msgr("Failed to Find Group: [%s(0x%X)]", mdg_error_to_string(ret), ret);
}
msg(" - mdg_group_find() ret: [0x%X] [%s]", ret, mdg_error_to_string(ret));
- if (found_group_list) {
- g_list_free_full(found_group_list, _destroy_mdg_group_info);
- found_group_list = NULL;
- }
-
return RET_SUCCESS;
}