Fix missing session list unlock
authorDavid Goulet <david.goulet@polymtl.ca>
Mon, 1 Aug 2011 17:37:49 +0000 (13:37 -0400)
committerDavid Goulet <david.goulet@polymtl.ca>
Mon, 1 Aug 2011 17:37:49 +0000 (13:37 -0400)
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
ltt-sessiond/main.c

index 3195e3c191160351fbade811d482cfaa6a7603c1..e069c1316cd6607308a5bc89f0a508fc38ae2121 100644 (file)
@@ -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;
                }
 
This page took 0.026486 seconds and 4 git commands to generate.