From: Jérémie Galarneau Date: Mon, 12 Nov 2018 22:25:25 +0000 (-0500) Subject: Fix: rotation thread does not unregister from RCU on init error X-Git-Tag: v2.11.0-rc2~188 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=fb4fc8e424ad18e7d724db20f9d904a1b5a3c13e;p=lttng-tools.git Fix: rotation thread does not unregister from RCU on init error Reported-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/rotation-thread.c b/src/bin/lttng-sessiond/rotation-thread.c index 59b712357..2e9796cc2 100644 --- a/src/bin/lttng-sessiond/rotation-thread.c +++ b/src/bin/lttng-sessiond/rotation-thread.c @@ -922,7 +922,7 @@ void *thread_rotation(void *data) ret = init_thread_state(handle, &thread); if (ret) { - goto end; + goto error; } /* Ready to handle client connections. */