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.5.5~19 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=e440ec9b81e8b85594410a96917ddc2d14314926;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 402b44277..1feaaeb37 100644 --- a/src/bin/lttng-relayd/health-relayd.c +++ b/src/bin/lttng-relayd/health-relayd.c @@ -149,7 +149,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) { @@ -221,6 +221,7 @@ int setup_health_path(void) end: free(rundir); + free(relayd_path); return ret; }