From: David Goulet Date: Mon, 1 Aug 2011 17:37:49 +0000 (-0400) Subject: Fix missing session list unlock X-Git-Tag: v2.0-pre7~19 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=36a8374856ed542195b1615e681ebc5a05dbb4fb;p=lttng-tools.git Fix missing session list unlock Signed-off-by: David Goulet --- diff --git a/ltt-sessiond/main.c b/ltt-sessiond/main.c index 3195e3c19..e069c1316 100644 --- a/ltt-sessiond/main.c +++ b/ltt-sessiond/main.c @@ -1936,12 +1936,14 @@ static int process_client_msg(struct command_ctx *cmd_ctx) if (session_list_ptr->count == 0) { ret = LTTCOMM_NO_SESSION; + unlock_session_list(); goto error; } ret = setup_lttng_msg(cmd_ctx, sizeof(struct lttng_session) * session_list_ptr->count); if (ret < 0) { + unlock_session_list(); goto setup_error; }