Fix: ensure kernel context is in a list before trying to delete it
[lttng-tools.git] / src / bin / lttng-sessiond / kernel.c
index fb6f96d47f4050edd28b4eb8507aa55993764800..d76166a6e9387c965acf66c347959553686bacfc 100644 (file)
@@ -68,6 +68,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.023962 seconds and 4 git commands to generate.