X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Fhealth-relayd.c;h=61e50367cb0eb1bfeadeb1e549468d180145afa0;hb=dbc8403ddf4274527a5be169978d5f08991c9501;hp=f2b167c4a0375e58a740d0369551e153854542e8;hpb=8c6c56c2c6577c540786b341e5334f676c12d43a;p=lttng-tools.git diff --git a/src/bin/lttng-relayd/health-relayd.c b/src/bin/lttng-relayd/health-relayd.c index f2b167c4a..61e50367c 100644 --- a/src/bin/lttng-relayd/health-relayd.c +++ b/src/bin/lttng-relayd/health-relayd.c @@ -133,7 +133,7 @@ static int setup_health_path(void) { int is_root, ret = 0; - char *home_path = NULL, *rundir, *relayd_path; + char *home_path = NULL, *rundir = NULL, *relayd_path; is_root = !getuid(); @@ -195,6 +195,7 @@ int setup_health_path(void) } end: + free(rundir); return ret; }