Fix: sessiond: notification: missing unlock on client list on error
[lttng-tools.git] / src / bin / lttng-sessiond / notification-thread-events.c
index 4623ef38c463edb281a6eaaaedfdb8521dfb4db6..0836620b59262413c43b8cb97addb8e0f468746b 100644 (file)
@@ -1152,6 +1152,7 @@ int notification_thread_client_subscribe(struct notification_client *client,
                        WARN("[notification-thread] Evaluation of a condition on client subscription failed, aborting.");
                        ret = -1;
                        free(client_list_element);
+                       pthread_mutex_unlock(&client_list->lock);
                        goto end;
                }
        }
This page took 0.023056 seconds and 4 git commands to generate.