* NULL is returned. This must be called with the session lock held using
* session_lock_list and session_unlock_list.
*/
-struct ltt_session *session_find_by_name(char *name)
+struct ltt_session *session_find_by_name(const char *name)
{
struct ltt_session *iter;
del_session_list(session);
pthread_mutex_destroy(&session->lock);
- consumer_destroy_output(session->consumer);
+ consumer_output_put(session->consumer);
snapshot_destroy(&session->snapshot);
free(session);