Add cleanup function for UST app
[lttng-tools.git] / lttng-sessiond / context.c
index d93a2895d2d3318a1cfb6291ec838c02020915b5..d36b3de80fe318b2b72eceb4ba3064cd6489639b 100644 (file)
@@ -275,16 +275,13 @@ static int add_ustctx_all_channels(struct ltt_ust_session *ustsession,
                }
                hashtable_get_next(channels, &iter);
        }
-       rcu_read_unlock();
-
        if (!found && !no_event) {
                ret = LTTCOMM_NO_EVENT;
                goto error;
        }
-
        ret = LTTCOMM_OK;
-
 error:
+       rcu_read_unlock();
        return ret;
 #endif
        return 0;
This page took 0.023323 seconds and 4 git commands to generate.