From 246a599cb05c4a0e9221f24f17d28f0a04d05c28 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Tue, 1 Mar 2022 14:20:30 -0500 Subject: [PATCH] Fix: session: end goto label used for error path MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau Change-Id: I1e5137c2de6c7b821485c9571ba24ee1036442e9 --- src/bin/lttng-sessiond/cmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/lttng-sessiond/cmd.c b/src/bin/lttng-sessiond/cmd.c index 78f1f053d..51b73bc4e 100644 --- a/src/bin/lttng-sessiond/cmd.c +++ b/src/bin/lttng-sessiond/cmd.c @@ -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'; -- 2.34.1