X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Fconsumer.c;h=e26388f8e50fab81d5df0999ab5fb73948e8faba;hb=b31398bb2b3fa91a53dea3b36fd693da4b50e0d3;hp=2dd463c1431f72e9fd1bf35d8551fddad5b28f4a;hpb=c5db699c91964a0f2c73f75677504c531f9f376f;p=lttng-tools.git diff --git a/src/common/consumer.c b/src/common/consumer.c index 2dd463c14..e26388f8e 100644 --- a/src/common/consumer.c +++ b/src/common/consumer.c @@ -660,9 +660,6 @@ static int add_stream(struct lttng_consumer_stream *stream, uatomic_inc(&relayd->refcount); } - /* Update channel refcount once added without error(s). */ - uatomic_inc(&stream->chan->refcount); - /* * When nb_init_stream_left reaches 0, we don't need to trigger any action * in terms of destroying the associated channel, because the action that