Fix: Missing RCU read locks in syscall_list_channel()
[lttng-tools.git] / src / bin / lttng-sessiond / agent.c
index 1c1c6ab18ad4fc341f805288de1092f667bedb85..f2283991a029ce954f794cab9d8ee3251074f690 100644 (file)
@@ -910,6 +910,7 @@ void agent_destroy_event(struct agent_event *event)
 {
        assert(event);
 
+       free(event->filter);
        free(event);
 }
 
@@ -953,7 +954,7 @@ void agent_destroy(struct agent *agt)
        }
        rcu_read_unlock();
 
-       lttng_ht_destroy(agt->events);
+       ht_cleanup_push(agt->events);
 }
 
 /*
This page took 0.026579 seconds and 4 git commands to generate.