Fix: keep ust/kernel session items around for destroy notifier
[lttng-tools.git] / src / bin / lttng-sessiond / trace-kernel.c
index a8aa01b269e9bc05bd4aeb28148899f38a154a06..36af00b2d09a4ba3d5b97e0b74eed509fedd64c2 100644 (file)
@@ -710,7 +710,11 @@ void trace_kernel_destroy_session(struct ltt_kernel_session *session)
        cds_list_for_each_entry_safe(channel, ctmp, &session->channel_list.head, list) {
                trace_kernel_destroy_channel(channel);
        }
+}
 
+/* Free elements needed by destroy notifiers. */
+void trace_kernel_free_session(struct ltt_kernel_session *session)
+{
        /* Wipe consumer output object */
        consumer_output_put(session->consumer);
 
This page took 0.022774 seconds and 4 git commands to generate.