Fix: unnecessarily large memory allocation
[lttng-tools.git] / src / common / consumer.c
index 45eede109bb5cdc5b019e480ea1ed0bae8f1f8b3..6990dd9678ad2723738e3cf5dd18fe2dd53b069f 100644 (file)
@@ -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);
This page took 0.024563 seconds and 4 git commands to generate.