X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fsession.c;h=076d2cbc46ea9243dbe636350d01592e6d40a880;hb=331744e34f56a5aec69b05d356d6901e67926acc;hp=65e3145a5fd63bae374117a25e25261300eaec91;hpb=0525e9ae15d215943d8187e7f190d5a45e723085;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/session.c b/src/bin/lttng-sessiond/session.c index 65e3145a5..076d2cbc4 100644 --- a/src/bin/lttng-sessiond/session.c +++ b/src/bin/lttng-sessiond/session.c @@ -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;