X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fcommon%2Fconsumer%2Fconsumer-stream.c;fp=src%2Fcommon%2Fconsumer%2Fconsumer-stream.c;h=c334edb154dfa78a49fbfd3f2189f42011f40fad;hb=59999197d40a0811585912bfac399c3492b61da2;hp=0f60dfd08e3a3e1b264d445698d8ace2e727ec0d;hpb=7a843330fa4fb0e5f7139970b9b3f38292bc45c8;p=lttng-tools.git diff --git a/src/common/consumer/consumer-stream.c b/src/common/consumer/consumer-stream.c index 0f60dfd08..c334edb15 100644 --- a/src/common/consumer/consumer-stream.c +++ b/src/common/consumer/consumer-stream.c @@ -517,6 +517,8 @@ struct lttng_consumer_stream *consumer_stream_create( goto error; } + stream->send_node = (typeof(stream->send_node)) + CDS_LIST_HEAD_INIT(stream->send_node); stream->chan = channel; stream->key = stream_key; stream->trace_chunk = trace_chunk; @@ -889,6 +891,8 @@ void consumer_stream_destroy(struct lttng_consumer_stream *stream, { assert(stream); + cds_list_del_init(&stream->send_node); + /* Stream is in monitor mode. */ if (stream->monitor) { struct lttng_consumer_channel *free_chan = NULL;