X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=src%2Fbin%2Flttng%2Flttng.c;h=9975a11465f46bc63e555f026e860d1ee93e6259;hb=fcf4d551b695cfdb6fe26d21f0509d08ef89b312;hp=e4a8fd23ca2cfd92639734b0d74ff7b7c819253d;hpb=62e55253348f999a97d323a3b1503478c4f3ff51;p=lttng-tools.git diff --git a/src/bin/lttng/lttng.c b/src/bin/lttng/lttng.c index e4a8fd23c..9975a1146 100644 --- a/src/bin/lttng/lttng.c +++ b/src/bin/lttng/lttng.c @@ -483,9 +483,17 @@ static int parse_args(int argc, char **argv) break; case OPT_SESSION_PATH: opt_sessiond_path = strdup(optarg); + if (!opt_sessiond_path) { + ret = -1; + goto error; + } break; case OPT_RELAYD_PATH: opt_relayd_path = strdup(optarg); + if (!opt_relayd_path) { + ret = -1; + goto error; + } break; case OPT_DUMP_OPTIONS: list_options(stdout);