From: Jérémie Galarneau Date: Mon, 14 Jan 2019 21:53:38 +0000 (-0500) Subject: Fix: don't put() thread on shutdown failure X-Git-Tag: v2.11.0-rc2~80 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=bd6a3ce51574f3eb3f843d0f772912dca615c1af;p=lttng-tools.git Fix: don't put() thread on shutdown failure Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/thread.c b/src/bin/lttng-sessiond/thread.c index 6eb5e8efb..c685442ba 100644 --- a/src/bin/lttng-sessiond/thread.c +++ b/src/bin/lttng-sessiond/thread.c @@ -169,6 +169,7 @@ bool _lttng_thread_shutdown(struct lttng_thread *thread) if (ret) { PERROR("Failed to join \"%s\" thread", thread->name); result = false; + goto end; } /* Release the list's reference to the thread. */ cds_list_del(&thread->node);