Fix relayd: initialize beacon to -1ULL
[lttng-tools.git] / src / bin / lttng-relayd / stream.c
index ac880e7e5ddb053be06500e9604e0f45d07bf203..4716f9d7923f8d5ddd4ea8a2cf6ee52c790bf846 100644 (file)
@@ -89,8 +89,10 @@ struct relay_stream *stream_create(struct ctf_trace *trace,
        stream->tracefile_size = tracefile_size;
        stream->tracefile_count = tracefile_count;
        stream->path_name = path_name;
+       stream->prev_path_name = NULL;
        stream->channel_name = channel_name;
        stream->rotate_at_seq_num = -1ULL;
+       stream->beacon_ts_end = -1ULL;
        lttng_ht_node_init_u64(&stream->node, stream->stream_handle);
        pthread_mutex_init(&stream->lock, NULL);
        urcu_ref_init(&stream->ref);
@@ -255,6 +257,7 @@ static void stream_destroy(struct relay_stream *stream)
                tracefile_array_destroy(stream->tfa);
        }
        free(stream->path_name);
+       free(stream->prev_path_name);
        free(stream->channel_name);
        free(stream);
 }
This page took 0.025349 seconds and 5 git commands to generate.