X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng%2Flttng.c;h=be673f94f2d0ab552c4f9daa3f90bff70637b2d1;hb=c2a79a67ba772bb10e5df8081b4830fdab88a99c;hp=85621444c32cb1b34f217dc2ec95ae9315c8cf29;hpb=ed594980911b1d934726bf2ea8cd2bf338be72c9;p=lttng-tools.git diff --git a/src/bin/lttng/lttng.c b/src/bin/lttng/lttng.c index 85621444c..be673f94f 100644 --- a/src/bin/lttng/lttng.c +++ b/src/bin/lttng/lttng.c @@ -374,13 +374,12 @@ static int check_sessiond(void) } ret = spawn_sessiond(pathname); - free(alloc_pathname); if (ret < 0) { ERR("Problem occurred when starting %s", pathname); - goto end; } - } + free(alloc_pathname); + } end: return ret; }