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-Url: http://git.efficios.com/?p=lttng-tools.git;a=commitdiff_plain;h=f5f8e5cd99782b9578accefd36a6181a82e9f14c 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. */