From: Jérémie Galarneau Date: Thu, 2 Jul 2015 22:55:17 +0000 (-0400) Subject: Fix: Memory leak in setup of relayd_path X-Git-Tag: v2.7.0-rc1~14 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=edd94901e51be13377d874b2960222a1bb262b8c;p=lttng-tools.git Fix: Memory leak in setup of relayd_path Signed-off-by: Jérémie Galarneau --- 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; }