From: David Goulet Date: Wed, 5 Feb 2014 21:26:43 +0000 (-0500) Subject: Fix: add missing ctf trace delete before destroy X-Git-Tag: v2.5.0-rc1~202 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=c46bab2978811114a2415f2deb3d1d98353edd90;p=lttng-tools.git Fix: add missing ctf trace delete before destroy Signed-off-by: David Goulet --- diff --git a/src/bin/lttng-relayd/ctf-trace.c b/src/bin/lttng-relayd/ctf-trace.c index 6fe77a5b4..9e9a5c69e 100644 --- a/src/bin/lttng-relayd/ctf-trace.c +++ b/src/bin/lttng-relayd/ctf-trace.c @@ -75,6 +75,7 @@ void ctf_trace_try_destroy(struct relay_session *session, */ if (uatomic_read(&session->viewer_refcount) == 0 && uatomic_read(&ctf_trace->refcount) == 0) { + ctf_trace_delete(session->ctf_traces_ht, ctf_trace); ctf_trace_destroy(ctf_trace); } }