X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fthread.c;h=c685442ba036e55ec24c413375d5409e50f56daf;hb=2a85be8e0e679da996b48252b1d9aebb9bb29126;hp=6eb5e8efb3124f67b7f1315c788162eaa67f31dd;hpb=21fa020ee12d44632c5efde063869d542897bdd1;p=lttng-tools.git 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);