Fix: create_kernel_session asserts on failure
[lttng-tools.git] / src / bin / lttng-sessiond / client.c
index 67e246b63505bb71819bc273cda7e861d2c7cadb..a889529a76967f881c9c05159ccdb55300336f51 100644 (file)
@@ -475,7 +475,7 @@ static int create_kernel_session(struct ltt_session *session)
        ret = kernel_create_session(session, kernel_tracer_fd);
        if (ret < 0) {
                ret = LTTNG_ERR_KERN_SESS_FAIL;
-               goto error;
+               goto error_create;
        }
 
        /* Code flow safety */
@@ -497,6 +497,7 @@ static int create_kernel_session(struct ltt_session *session)
 error:
        trace_kernel_destroy_session(session->kernel_session);
        session->kernel_session = NULL;
+error_create:
        return ret;
 }
 
This page took 0.034385 seconds and 5 git commands to generate.