Fix: ensure kernel context is in a list before trying to delete it
[lttng-tools.git] / src / bin / lttng-sessiond / kernel.c
index 8dc3f86314d5aab8b94bf623942ec1ee404ad959..c99c6fd1bbef41ef1f3e571ce969199267d98990 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.025071 seconds and 4 git commands to generate.