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 22:55:17 +0000 (18:55 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-relayd/health-relayd.c

index e3e48c9195a6bdd2a411c8e31aa1a2f198d19afe..d34a376c53989dd314cf217c0da52e7d69f1a3e4 100644 (file)
@@ -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;
 }
 
This page took 0.02699 seconds and 5 git commands to generate.