From fa317f24049f7f1ee769969675c2b61e0c770fbf Mon Sep 17 00:00:00 2001 From: David Goulet Date: Tue, 21 Aug 2012 12:31:14 -0400 Subject: [PATCH] Fix: missing mutex unlock on register consumer err Reported-by: Julien Desfossez Signed-off-by: David Goulet --- src/bin/lttng-sessiond/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bin/lttng-sessiond/main.c b/src/bin/lttng-sessiond/main.c index b9c2177fa..76d185700 100644 --- a/src/bin/lttng-sessiond/main.c +++ b/src/bin/lttng-sessiond/main.c @@ -2033,6 +2033,7 @@ static int process_client_msg(struct command_ctx *cmd_ctx, int sock, pthread_mutex_lock(&kconsumer_data.pid_mutex); if (kconsumer_data.pid > 0) { ret = LTTCOMM_KERN_CONSUMER_FAIL; + pthread_mutex_unlock(&kconsumer_data.pid_mutex); goto error; } pthread_mutex_unlock(&kconsumer_data.pid_mutex); -- 2.34.1