X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Fctf-trace.c;h=59946ea4a8810bde2edc67414d782f34fc4032cb;hb=5c32d0aeb3f1e338ff61f9b5c865a01763a3ec4b;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..59946ea4a 100644 --- a/src/bin/lttng-relayd/ctf-trace.c +++ b/src/bin/lttng-relayd/ctf-trace.c @@ -17,6 +17,7 @@ */ #define _GNU_SOURCE +#define _LGPL_SOURCE #include #include @@ -75,6 +76,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); } }