X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Fhealth-relayd.c;h=d34a376c53989dd314cf217c0da52e7d69f1a3e4;hp=e3e48c9195a6bdd2a411c8e31aa1a2f198d19afe;hb=edd94901e51be13377d874b2960222a1bb262b8c;hpb=99ad328584e02d6a0e90e0840e7c2820688c29ab diff --git a/src/bin/lttng-relayd/health-relayd.c b/src/bin/lttng-relayd/health-relayd.c index e3e48c919..d34a376c5 100644 --- a/src/bin/lttng-relayd/health-relayd.c +++ b/src/bin/lttng-relayd/health-relayd.c @@ -151,7 +151,7 @@ static int setup_health_path(void) { int is_root, ret = 0; - char *home_path = NULL, *rundir = NULL, *relayd_path; + char *home_path = NULL, *rundir = NULL, *relayd_path = NULL; ret = parse_health_env(); if (ret) { @@ -223,6 +223,7 @@ int setup_health_path(void) end: free(rundir); + free(relayd_path); return ret; }