Fix RCU-related hangs: incorrect lttng_ht_destroy use
[lttng-tools.git] / src / common / consumer.c
index 34385579741f6f0273aee213576bd0a188a95b0e..c47c0ff08239f9c80ccb9a8fae286034def197fc 100644 (file)
@@ -319,9 +319,9 @@ static void cleanup_relayd_ht(void)
                destroy_relayd(relayd);
        }
 
-       lttng_ht_destroy(consumer_data.relayd_ht);
-
        rcu_read_unlock();
+
+       lttng_ht_destroy(consumer_data.relayd_ht);
 }
 
 /*
This page took 0.031559 seconds and 4 git commands to generate.