Fix: remove one too many metadata refcount increment
[lttng-tools.git] / src / common / consumer.c
index 78b3f0799737139fc9067a601a39452e384b3e0e..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
@@ -2976,7 +2973,7 @@ end:
                }
        }
        if (client_socket >= 0) {
-               ret = close(sock);
+               ret = close(client_socket);
                if (ret < 0) {
                        PERROR("close client_socket sessiond poll");
                }
This page took 0.023868 seconds and 4 git commands to generate.