int setup_health_path(void)
{
int is_root, ret = 0;
- char *home_path = NULL, *rundir, *relayd_path;
+ char *home_path = NULL, *rundir = NULL, *relayd_path;
is_root = !getuid();
}
end:
+ free(rundir);
return ret;
}
}
}
+ /*
+ * We do NOT rmdir rundir nor the relayd path because there are
+ * other processes using them.
+ */
+
lttng_poll_clean(&events);
rcu_unregister_thread();