Fix: remove one too many metadata refcount increment
[lttng-tools.git] / src / common / consumer.c
index a856f030efe63c3553c820d96012b065e9817e8b..3709092198e5a9d1fcf6781134ba7e645ce3e202 100644 (file)
@@ -2019,9 +2019,6 @@ static int add_metadata_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
This page took 0.02603 seconds and 5 git commands to generate.