Fix: agent events HT should be destroyed from the cleanup thread
[lttng-tools.git] / src / bin / lttng-sessiond / agent.c
index 5cb8336c361d4377973b365608ec603597564afe..d7bc1b55c698a8d4e490bb8c06df4128da1b9bb2 100644 (file)
@@ -955,7 +955,7 @@ void agent_destroy(struct agent *agt)
        }
        rcu_read_unlock();
 
-       lttng_ht_destroy(agt->events);
+       ht_cleanup_push(agt->events);
 }
 
 /*
This page took 0.023232 seconds and 4 git commands to generate.