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