Fix: Memory leak in setup of relayd_path
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 2 Jul 2015 22:55:17 +0000 (18:55 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 2 Jul 2015 23:24:16 +0000 (19:24 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-relayd/health-relayd.c

index 402b44277777b07a7ccd9e49d47e69e1049549d7..1feaaeb374220f30ba1a9fb23ea4d848863817f7 100644 (file)
@@ -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;
 }
 
This page took 0.025249 seconds and 4 git commands to generate.