Fix: session: end goto label used for error path
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 1 Mar 2022 19:20:30 +0000 (14:20 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 1 Mar 2022 19:21:25 +0000 (14:21 -0500)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I1e5137c2de6c7b821485c9571ba24ee1036442e9

src/bin/lttng-sessiond/cmd.c

index 78f1f053d7cd6b47f07d84b03700a04ccab7f13e..51b73bc4e6d02f22d60163b430f9a16f20fea8fa 100644 (file)
@@ -431,14 +431,14 @@ static enum lttng_error_code list_lttng_ust_global_events(char *channel_name,
                tmp = lttng_event_create();
                if (!tmp) {
                        ret_code = LTTNG_ERR_NOMEM;
-                       goto end;
+                       goto error;
                }
 
                if (lttng_strncpy(tmp->name, uevent->attr.name,
                                LTTNG_SYMBOL_NAME_LEN)) {
                        ret_code = LTTNG_ERR_FATAL;
                        lttng_event_destroy(tmp);
-                       goto end;
+                       goto error;
                }
 
                tmp->name[LTTNG_SYMBOL_NAME_LEN - 1] = '\0';
This page took 0.029323 seconds and 4 git commands to generate.