summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
7682f30)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
end:
cds_list_add_tail(&ctx->list, &chan->ctx_list);
end:
cds_list_add_tail(&ctx->list, &chan->ctx_list);
ctx = NULL;
error:
if (ctx) {
ctx = NULL;
error:
if (ctx) {
- cds_list_del(&ctx->list);
+ if (ctx->in_list) {
+ cds_list_del(&ctx->list);
+ }
struct ltt_kernel_context {
struct lttng_kernel_context ctx;
struct cds_list_head list;
struct ltt_kernel_context {
struct lttng_kernel_context ctx;
struct cds_list_head list;
+ /* Indicates whether or not the context is in a list. */
+ bool in_list;