X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Fconsumer.c;h=3709092198e5a9d1fcf6781134ba7e645ce3e202;hb=a0c83db984f8c20897666eef226b43fce81d0e13;hp=78b3f0799737139fc9067a601a39452e384b3e0e;hpb=73811eccc9599ebf62e5f5bee49039cecc25c3eb;p=lttng-tools.git diff --git a/src/common/consumer.c b/src/common/consumer.c index 78b3f0799..370909219 100644 --- a/src/common/consumer.c +++ b/src/common/consumer.c @@ -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"); }