Fix: sessiond: client socket not created by the main thread
[lttng-tools.git] / src / bin / lttng-sessiond / thread.c
index c685442ba036e55ec24c413375d5409e50f56daf..ff6c0962f33768390500e7e5da2cedee55311a5f 100644 (file)
@@ -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);
 }
This page took 0.033618 seconds and 5 git commands to generate.