lttng command line UI: fix allocation/free
[lttng-tools.git] / lttng / commands / start.c
index 1a3e568ed6df10115f90313c6ce9b9ee894539ed..e9423170e8773e2a99dd6544f8efe0ad0719aeaf 100644 (file)
@@ -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;
 }
This page took 0.026364 seconds and 5 git commands to generate.