Fix: reference counting of consumer output
[lttng-tools.git] / src / bin / lttng-sessiond / session.c
index 99b0165070ebc296c9f2bc9dc46a6d5967703741..49055fb109be531af3354afcb28249b20a623d06 100644 (file)
@@ -24,6 +24,8 @@
 #include <string.h>
 #include <sys/stat.h>
 #include <urcu.h>
+#include <dirent.h>
+#include <sys/types.h>
 
 #include <common/common.h>
 #include <common/sessiond-comm/sessiond-comm.h>
@@ -196,7 +198,7 @@ int session_destroy(struct ltt_session *session)
        del_session_list(session);
        pthread_mutex_destroy(&session->lock);
 
-       consumer_destroy_output(session->consumer);
+       consumer_output_put(session->consumer);
        snapshot_destroy(&session->snapshot);
        free(session);
 
This page took 0.02322 seconds and 4 git commands to generate.