X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Fconsumer.c;fp=src%2Fcommon%2Fconsumer.c;h=e11e46077c720d9023191024ae80af1a220f8d8b;hb=e75c3b320b6414a28b274e2e755904ea6b45f35a;hp=aacabdb76d4acc5e54bd3cb9434bd789e0b71ca0;hpb=1124da525fd5271809172a9820029ae4a8821ccf;p=lttng-tools.git diff --git a/src/common/consumer.c b/src/common/consumer.c index aacabdb76..e11e46077 100644 --- a/src/common/consumer.c +++ b/src/common/consumer.c @@ -1308,6 +1308,10 @@ void lttng_consumer_destroy(struct lttng_consumer_local_data *ctx) DBG("Consumer destroying it. Closing everything."); + if (!ctx) { + return; + } + destroy_data_stream_ht(data_ht); destroy_metadata_stream_ht(metadata_ht);