assert(ltt_sessions_ht_by_name);
- if (lttng_ht_get_count(ltt_sessions_ht_by_id) == 0) {
+ if (lttng_ht_get_count(ltt_sessions_ht_by_id) != 0) {
/* Not empty.*/
goto end;
}
lttng_dynamic_array_reset(&session->clear_notifiers);
free(session->last_archived_chunk_name);
free(session->base_path);
+ lttng_trigger_put(session->rotate_trigger);
free(session);
if (session_published) {
/*
*/
session_notify_clear(session);
}
+
return ret;
}