From: Francis Deslauriers Date: Tue, 8 Jun 2021 19:15:00 +0000 (-0400) Subject: Fix: double mutex_unlock() if session is deleted X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=66d443a33841fd1fa99569443218cb85d06448f3;p=lttng-tools.git Fix: double mutex_unlock() if session is deleted Signed-off-by: Francis Deslauriers Signed-off-by: Jérémie Galarneau Change-Id: I9e640396c12496b6d6c191e838dab138679d5f5e --- diff --git a/src/bin/lttng-sessiond/ust-app.c b/src/bin/lttng-sessiond/ust-app.c index f222ebdb6..a1c681143 100644 --- a/src/bin/lttng-sessiond/ust-app.c +++ b/src/bin/lttng-sessiond/ust-app.c @@ -5909,7 +5909,6 @@ void ust_app_synchronize(struct ltt_ust_session *usess, pthread_mutex_lock(&ua_sess->lock); if (ua_sess->deleted) { - pthread_mutex_unlock(&ua_sess->lock); goto end; }