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.12.0-rc1~774 X-Git-Url: https://git.liburcu.org/?a=commitdiff_plain;h=f5f8e5cd99782b9578accefd36a6181a82e9f14c;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. */