From: Jérémie Galarneau Date: Sat, 15 Nov 2014 04:35:45 +0000 (-0500) Subject: Fix: agent events HT should be destroyed from the cleanup thread X-Git-Url: https://git.liburcu.org/?a=commitdiff_plain;ds=sidebyside;h=f8be902b22054782d4cc7b67781617030c49225e;hp=0c0fcd77061d4588fed9474446b36f7e15f4648e;p=lttng-tools.git Fix: agent events HT should be destroyed from the cleanup thread Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/agent.c b/src/bin/lttng-sessiond/agent.c index 5cb8336c3..d7bc1b55c 100644 --- a/src/bin/lttng-sessiond/agent.c +++ b/src/bin/lttng-sessiond/agent.c @@ -955,7 +955,7 @@ void agent_destroy(struct agent *agt) } rcu_read_unlock(); - lttng_ht_destroy(agt->events); + ht_cleanup_push(agt->events); } /*