X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fconsumer.c;h=ddfca408b07739b6d18b9853b168b1a60bad5594;hb=e1eb1e0e23e27f60cb610708fc460dc0c8045d33;hp=43848bc5e065076c53ca8f3453b8910e8bc16faa;hpb=46d0fbbc30ab58c8b70e8689d1a0bfe6872286a1;p=lttng-tools.git diff --git a/src/common/consumer.c b/src/common/consumer.c index 43848bc5e..ddfca408b 100644 --- a/src/common/consumer.c +++ b/src/common/consumer.c @@ -2352,7 +2352,11 @@ void *consumer_thread_data_poll(void *data) goto end; } - local_stream = zmalloc(sizeof(struct lttng_consumer_stream)); + local_stream = zmalloc(sizeof(struct lttng_consumer_stream *)); + if (local_stream == NULL) { + PERROR("local_stream malloc"); + goto end; + } while (1) { high_prio = 0;