- int found = -1;
- struct ltt_session *iter;
-
- lock_session_list();
- cds_list_for_each_entry(iter, <t_session_list.head, list) {
- if (strcmp(iter->name, name) == 0) {
- DBG("Destroying session %s", iter->name);
- del_session_list(iter);
- free(iter->name);
- free(iter->path);
- pthread_mutex_destroy(&iter->lock);
- free(iter);
- found = 1;
- break;
- }