X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Fhealth-relayd.c;h=d34a376c53989dd314cf217c0da52e7d69f1a3e4;hb=0c0e3b4112d52fb54a844300b36f1373e3055c8f;hp=e3e48c9195a6bdd2a411c8e31aa1a2f198d19afe;hpb=e8fa9fb0539ec3d734f6d0ab91220b4538b2ea30;p=lttng-tools.git 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; }