Fix: ensure kernel context is in a list before trying to delete it
[lttng-tools.git] / src / bin / lttng-sessiond / kernel.c
index 2031bfb38f4ca3825f37067a2ddbca50890e54f8..2cbed381870a096350a4e8ac77ec39845850d0f1 100644 (file)
@@ -69,6 +69,7 @@ int kernel_add_channel_context(struct ltt_kernel_channel *chan,
 
 end:
        cds_list_add_tail(&ctx->list, &chan->ctx_list);
+       ctx->in_list = true;
        ctx = NULL;
 error:
        if (ctx) {
This page took 0.022432 seconds and 4 git commands to generate.