X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fconsumer.c;h=c7bc1e7a05b75010135d18cda82bf7fa322b1150;hb=f7ddd24e694b77d4f0bf92967120321d24243054;hp=910f386d932f5a71924bd637b4a5a467abcd6e2f;hpb=d01178b6f6465443d7e6e1015aa7054e9d093e91;p=lttng-tools.git diff --git a/src/common/consumer.c b/src/common/consumer.c index 910f386d9..c7bc1e7a0 100644 --- a/src/common/consumer.c +++ b/src/common/consumer.c @@ -2291,7 +2291,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;