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.4.0-rc5~33 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=b815bca8de22ef04f19ca3e64ffac481f3053330;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); } }