X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fcreate.c;h=6c7ab786e5d25fc90ca4b2606ee67a6bb9ff0f49;hp=d66f0309e28de3613468fdd4f3ba06d4ccf51040;hb=0e428499a49b2335f4859058739fa2b20f4c410f;hpb=9d035200e9006c4d4cf6951c54641e06c0bdf2bc diff --git a/src/bin/lttng/commands/create.c b/src/bin/lttng/commands/create.c index d66f0309e..6c7ab786e 100644 --- a/src/bin/lttng/commands/create.c +++ b/src/bin/lttng/commands/create.c @@ -390,13 +390,8 @@ static int create_session(void) ret = CMD_SUCCESS; error: - if (alloc_url) { - free(alloc_url); - } - - if (traces_path) { - free(traces_path); - } + free(alloc_url); + free(traces_path); free(alloc_path); if (ret < 0) {