X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fconsumer.c;h=6990dd9678ad2723738e3cf5dd18fe2dd53b069f;hb=0c7bcad5eaa11b368460759fc87f949e8c56b98f;hp=45eede109bb5cdc5b019e480ea1ed0bae8f1f8b3;hpb=12d1308838f30af13dc917323a4bcc70b5d97e81;p=lttng-tools.git diff --git a/src/common/consumer.c b/src/common/consumer.c index 45eede109..6990dd967 100644 --- a/src/common/consumer.c +++ b/src/common/consumer.c @@ -2349,7 +2349,7 @@ void *consumer_thread_data_poll(void *data) /* allocate for all fds + 1 for the consumer_data_pipe */ local_stream = zmalloc((consumer_data.stream_count + 1) * - sizeof(struct lttng_consumer_stream)); + sizeof(struct lttng_consumer_stream *)); if (local_stream == NULL) { PERROR("local_stream malloc"); pthread_mutex_unlock(&consumer_data.lock);