projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix tracing events data structure
[lttng-tools.git]
/
lttng
/
commands
/
destroy.c
diff --git
a/lttng/commands/destroy.c
b/lttng/commands/destroy.c
index 9519403ad1c68e26a85a913e7714dd536a2f20fc..743d899786a637b58b7b773012832c4426708707 100644
(file)
--- a/
lttng/commands/destroy.c
+++ b/
lttng/commands/destroy.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;
@@
-81,7
+81,7
@@
static int destroy_session()
goto free_name;
}
goto free_name;
}
- path =
get_config_file
_path();
+ path =
config_get_default
_path();
if (path == NULL) {
ret = CMD_FATAL;
goto free_name;
if (path == NULL) {
ret = CMD_FATAL;
goto free_name;
@@
-94,11
+94,12
@@
static int destroy_session()
MSG("Session %s destroyed", session_name);
}
MSG("Session %s destroyed", session_name);
}
- free(path);
ret = CMD_SUCCESS;
free_name:
ret = CMD_SUCCESS;
free_name:
- free(session_name);
+ if (opt_session_name == NULL) {
+ free(session_name);
+ }
error:
return ret;
}
error:
return ret;
}
This page took
0.023764 seconds
and
4
git commands to generate.