Fix: define _LGPL_SOURCE in C files
[lttng-tools.git] / src / bin / lttng-relayd / ctf-trace.c
index 6fe77a5b4438f5833e9eaa9bfeb3c092aaacf964..59946ea4a8810bde2edc67414d782f34fc4032cb 100644 (file)
@@ -17,6 +17,7 @@
  */
 
 #define _GNU_SOURCE
+#define _LGPL_SOURCE
 #include <assert.h>
 
 #include <common/common.h>
@@ -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);
        }
 }
This page took 0.024923 seconds and 4 git commands to generate.