projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lttng command line UI: fix allocation/free
[lttng-tools.git]
/
lttng
/
commands
/
start.c
diff --git
a/lttng/commands/start.c
b/lttng/commands/start.c
index 3a4febe4f86bf7099b9df6d98ae2f8cf1ba8729d..e9423170e8773e2a99dd6544f8efe0ad0719aeaf 100644
(file)
--- a/
lttng/commands/start.c
+++ b/
lttng/commands/start.c
@@
-26,7
+26,7
@@
#include <unistd.h>
#include "cmd.h"
#include <unistd.h>
#include "cmd.h"
-#include "conf
ig
.h"
+#include "conf.h"
#include "utils.h"
static char *opt_session_name;
#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:
MSG("Tracing started for session %s", session_name);
free_name:
- free(session_name);
+ if (opt_session_name == NULL) {
+ free(session_name);
+ }
error:
return ret;
}
error:
return ret;
}
This page took
0.024925 seconds
and
5
git commands to generate.