Change-Id: Ia9bb64ae0264b849c881de4dd5c37422b179f44b
DBG("remove reminder(0x%x)", callback);
callback_info_s *ci = (callback_info_s *)cursor->data;
cal_dbus_unsubscribe_signal(ci->id);
- __subscribe_list = g_slist_delete_link(__subscribe_list, cursor);
+ __subscribe_list = g_slist_remove(__subscribe_list, cursor);
+ free(cursor->data);
+ free(cursor);
if (0 == g_slist_length(__subscribe_list)) {
g_slist_free(__subscribe_list);
len_t = g_strv_length(t);
if (0 == len_t) {
/* LCOV_EXCL_START */
+ g_strfreev(t);
ERR("Empty src");
return NULL;
/* LCOV_EXCL_STOP */