Signed-off-by: Christian Babeux <[email protected]>
---
src/bin/lttng/lttng.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/bin/lttng/lttng.c b/src/bin/lttng/lttng.c
index 8562144..be673f9 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;
}
--
1.8.1.3
_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev