consumerd: clean-up: stream attribute accessed without locking stream
[lttng-tools.git] / src / common / ust-consumer / ust-consumer.c
index b64ad04aaa3cd101b3275181b5b382a40fb62385..46b644d347f856d8ef5185008f2db94eaf072a05 100644 (file)
@@ -1079,7 +1079,6 @@ error_stream:
         * Clean up the stream completly because the next snapshot will use a new
         * metadata stream.
         */
-       pthread_mutex_lock(&metadata_stream->lock);
        consumer_stream_destroy(metadata_stream, NULL);
        cds_list_del(&metadata_stream->send_node);
        metadata_channel->metadata_stream = NULL;
@@ -2171,7 +2170,6 @@ end_msg_sessiond:
 
 end_channel_error:
        if (channel) {
-               pthread_mutex_unlock(&channel->lock);
                /*
                 * Free channel here since no one has a reference to it. We don't
                 * free after that because a stream can store this pointer.
This page took 0.024944 seconds and 5 git commands to generate.