Cleanup: Reduce scope of connections in main relayd thread
[lttng-tools.git] / src / bin / lttng-sessiond / ust-registry.c
index 3f4a962c1014de3913f416e25d3ae6f94db1df21..1a00e9349fb2f04c6052a5222acaf7d927fdd471 100644 (file)
@@ -608,7 +608,9 @@ void ust_registry_session_destroy(struct ust_registry_session *reg)
        struct lttng_ht_iter iter;
        struct ust_registry_channel *chan;
 
-       assert(reg);
+       if (!reg) {
+               return;
+       }
 
        /* On error, EBUSY can be returned if lock. Code flow error. */
        ret = pthread_mutex_destroy(&reg->lock);
This page took 0.023174 seconds and 4 git commands to generate.