From: Mathieu Desnoyers Date: Thu, 18 Dec 2014 01:45:12 +0000 (-0500) Subject: Fix: agents ht leaks on destroy session X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=8ada2175d0ad34fb4167d65010402fd9483e3e79;p=lttng-tools.git Fix: agents ht leaks on destroy session Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/trace-ust.c b/src/bin/lttng-sessiond/trace-ust.c index 971c56e7c..a3e25aa8a 100644 --- a/src/bin/lttng-sessiond/trace-ust.c +++ b/src/bin/lttng-sessiond/trace-ust.c @@ -766,6 +766,8 @@ void trace_ust_destroy_session(struct ltt_ust_session *session) } rcu_read_unlock(); + ht_cleanup_push(session->agents); + /* Cleanup UID buffer registry object(s). */ cds_list_for_each_entry_safe(reg, sreg, &session->buffer_reg_uid_list, lnode) {