Fix: reference counting of consumer output
[lttng-tools.git] / src / bin / lttng-sessiond / trace-kernel.c
index b86bdfe6060b37c0698f805f2daa89491d54101d..b4dc1b9e81e46765f523cda523a3c26a864dd106 100644 (file)
@@ -162,14 +162,6 @@ struct ltt_kernel_session *trace_kernel_create_session(void)
                goto error;
        }
 
-       /*
-        * The tmp_consumer stays NULL until a set_consumer_uri command is
-        * executed. At this point, the consumer should be nullify until an
-        * enable_consumer command. This assignment is symbolic since we've zmalloc
-        * the struct.
-        */
-       lks->tmp_consumer = NULL;
-
        return lks;
 
 error:
@@ -578,8 +570,7 @@ void trace_kernel_destroy_session(struct ltt_kernel_session *session)
        }
 
        /* Wipe consumer output object */
-       consumer_destroy_output(session->consumer);
-       consumer_destroy_output(session->tmp_consumer);
+       consumer_output_put(session->consumer);
 
        free(session);
 }
This page took 0.022873 seconds and 4 git commands to generate.