Fix: relayd: unbalanced RCU read-side lock/unlock
[lttng-tools.git] / src / bin / lttng-relayd / live.c
index 5684608eacc6b72a86550dd0c70e007381922b12..fe43e487e9df1c60ebac3b1caeeebf823da64e53 100644 (file)
@@ -17,6 +17,7 @@
  */
 
 #define _GNU_SOURCE
+#define _LGPL_SOURCE
 #include <getopt.h>
 #include <grp.h>
 #include <limits.h>
@@ -1322,7 +1323,7 @@ int viewer_get_next_index(struct relay_connection *conn)
        ret = check_index_status(vstream, rstream, ctf_trace, &viewer_index);
        pthread_mutex_unlock(&rstream->viewer_stream_rotation_lock);
        if (ret < 0) {
-               goto end;
+               goto end_unlock;
        } else if (ret == 1) {
                /*
                 * This means the viewer index data structure has been populated by the
This page took 0.023049 seconds and 4 git commands to generate.