X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fthread.c;h=ff6c0962f33768390500e7e5da2cedee55311a5f;hp=c685442ba036e55ec24c413375d5409e50f56daf;hb=0f68efb616cd046543e5fc5a091466ec26df2216;hpb=36f9f13bca63cdc94fcc12f03d9c3e181afc81a5;ds=sidebyside diff --git a/src/bin/lttng-sessiond/thread.c b/src/bin/lttng-sessiond/thread.c index c685442ba..ff6c0962f 100644 --- a/src/bin/lttng-sessiond/thread.c +++ b/src/bin/lttng-sessiond/thread.c @@ -140,6 +140,9 @@ bool lttng_thread_get(struct lttng_thread *thread) void lttng_thread_put(struct lttng_thread *thread) { + if (!thread) { + return; + } assert(thread->ref.refcount); urcu_ref_put(&thread->ref, lttng_thread_release); }