Deprecate enable/disable-consumer
[lttng-tools.git] / src / bin / lttng-sessiond / session.c
index 65e3145a5fd63bae374117a25e25261300eaec91..076d2cbc46ea9243dbe636350d01592e6d40a880 100644 (file)
@@ -199,11 +199,6 @@ int session_create(char *name, char *path, uid_t uid, gid_t gid)
                        ret = LTTNG_ERR_FATAL;
                        goto error_asprintf;
                }
-               new_session->start_consumer = 1;
-       } else {
-               /* No path indicates that there is no use for a consumer. */
-               new_session->start_consumer = 0;
-               new_session->path[0] = '\0';
        }
 
        /* Init kernel session */
@@ -246,9 +241,7 @@ int session_create(char *name, char *path, uid_t uid, gid_t gid)
 
 error:
 error_asprintf:
-       if (new_session != NULL) {
-               free(new_session);
-       }
+       free(new_session);
 
 error_malloc:
        return ret;
This page took 0.023701 seconds and 4 git commands to generate.