X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fcreate.c;h=40d2a77d94b48b9d8435948c2c2b557ade3792ed;hb=84811b9b3552a24a5f12871f94b60b9b4c48d8f5;hp=0f7d1a4380646804354164565746f7a30bd90a0b;hpb=a3461e94de72e04fd6040c0fad5fb6d3615a2de4;p=lttng-tools.git diff --git a/src/bin/lttng/commands/create.c b/src/bin/lttng/commands/create.c index 0f7d1a438..40d2a77d9 100644 --- a/src/bin/lttng/commands/create.c +++ b/src/bin/lttng/commands/create.c @@ -342,6 +342,10 @@ static int create_session(void) /* Use default live URL if NO url is/are found. */ if ((opt_live_timer && !opt_url) && (opt_live_timer && !opt_data_url)) { + /* Override the url */ + free(url); + url = NULL; + ret = asprintf(&alloc_url, "net://127.0.0.1"); if (ret < 0) { PERROR("asprintf default live URL");