X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Fctf-trace.c;h=9e9a5c69eb87a1f802fd0fc75bd5ea0f2a7a0151;hb=f263b7fd113e51d0737554e8232b8669e142a260;hp=6fe77a5b4438f5833e9eaa9bfeb3c092aaacf964;hpb=2a174661a1e0ab551b41ff1cae7191688525fc1f;p=lttng-tools.git 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); } }