projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix return value and mem leak for all commands
[lttng-tools.git]
/
src
/
bin
/
lttng
/
commands
/
calibrate.c
diff --git
a/src/bin/lttng/commands/calibrate.c
b/src/bin/lttng/commands/calibrate.c
index a60cadfa042a629eee9d97f1c4c1615a889e6656..547b349e4dbb713d67f6862d61debb74a4e57de8 100644
(file)
--- a/
src/bin/lttng/commands/calibrate.c
+++ b/
src/bin/lttng/commands/calibrate.c
@@
-187,7
+187,7
@@
error:
*/
int cmd_calibrate(int argc, const char **argv)
{
*/
int cmd_calibrate(int argc, const char **argv)
{
- int opt, ret;
+ int opt, ret
= CMD_SUCCESS
;
static poptContext pc;
pc = poptGetContext(NULL, argc, argv, long_options, 0);
static poptContext pc;
pc = poptGetContext(NULL, argc, argv, long_options, 0);
@@
-200,7
+200,6
@@
int cmd_calibrate(int argc, const char **argv)
switch (opt) {
case OPT_HELP:
usage(stdout);
switch (opt) {
case OPT_HELP:
usage(stdout);
- ret = CMD_SUCCESS;
goto end;
case OPT_TRACEPOINT:
ret = CMD_UNDEFINED;
goto end;
case OPT_TRACEPOINT:
ret = CMD_UNDEFINED;
@@
-225,7
+224,6
@@
int cmd_calibrate(int argc, const char **argv)
break;
case OPT_LIST_OPTIONS:
list_cmd_options(stdout, long_options);
break;
case OPT_LIST_OPTIONS:
list_cmd_options(stdout, long_options);
- ret = CMD_SUCCESS;
goto end;
default:
usage(stderr);
goto end;
default:
usage(stderr);
@@
-237,5
+235,6
@@
int cmd_calibrate(int argc, const char **argv)
ret = calibrate_lttng();
end:
ret = calibrate_lttng();
end:
+ poptFreeContext(pc);
return ret;
}
return ret;
}
This page took
0.027388 seconds
and
5
git commands to generate.