From: Jérémie Galarneau Date: Tue, 1 Mar 2022 19:20:30 +0000 (-0500) Subject: Fix: session: end goto label used for error path X-Git-Tag: v2.12.9~23 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=246a599cb05c4a0e9221f24f17d28f0a04d05c28;p=lttng-tools.git Fix: session: end goto label used for error path Signed-off-by: Jérémie Galarneau Change-Id: I1e5137c2de6c7b821485c9571ba24ee1036442e9 --- 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';