X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Fhealth-relayd.c;h=6b4a742f8e5fa95066e29b3e922ff13bd449eb31;hb=dcbcae3e305b65785461b4c7bbc60864e03208a2;hp=f2b167c4a0375e58a740d0369551e153854542e8;hpb=65931c8b1d91fd946a2e117a5a1f61eba0b5087a;p=lttng-tools.git diff --git a/src/bin/lttng-relayd/health-relayd.c b/src/bin/lttng-relayd/health-relayd.c index f2b167c4a..6b4a742f8 100644 --- a/src/bin/lttng-relayd/health-relayd.c +++ b/src/bin/lttng-relayd/health-relayd.c @@ -133,7 +133,7 @@ static 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(); @@ -195,6 +195,7 @@ int setup_health_path(void) } end: + free(rundir); return ret; } @@ -384,6 +385,11 @@ error: } } + /* + * We do NOT rmdir rundir nor the relayd path because there are + * other processes using them. + */ + lttng_poll_clean(&events); rcu_unregister_thread();