X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=lttng%2Fcommands%2Fstart.c;h=e9423170e8773e2a99dd6544f8efe0ad0719aeaf;hb=e6ddca715d6dedb6ee25fe4392a6e1f9626b2544;hp=3a4febe4f86bf7099b9df6d98ae2f8cf1ba8729d;hpb=f3ed775ef4842019b396f06095b053c3a70bc3c8;p=lttng-tools.git diff --git a/lttng/commands/start.c b/lttng/commands/start.c index 3a4febe4f..e9423170e 100644 --- a/lttng/commands/start.c +++ b/lttng/commands/start.c @@ -26,7 +26,7 @@ #include #include "cmd.h" -#include "config.h" +#include "conf.h" #include "utils.h" static char *opt_session_name; @@ -85,7 +85,9 @@ static int start_tracing(void) MSG("Tracing started for session %s", session_name); free_name: - free(session_name); + if (opt_session_name == NULL) { + free(session_name); + } error: return ret; }