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.6.1~102 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=cf6eaeaf8ce5fd8a89a2191d1b67431ddd9bc329;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; }