From: Jérémie Galarneau Date: Wed, 29 Aug 2018 21:23:38 +0000 (-0400) Subject: Fix: missing jump to error on allocation failure X-Git-Tag: v2.11.0-rc1~31 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=5e4f4898bca7f9520da9a450c476b6148ea7d49c;p=lttng-tools.git Fix: missing jump to error on allocation failure Signed-off-by: Jérémie Galarneau --- diff --git a/src/lib/lttng-ctl/lttng-ctl.c b/src/lib/lttng-ctl/lttng-ctl.c index b0fe8ab74..c8d60cddc 100644 --- a/src/lib/lttng-ctl/lttng-ctl.c +++ b/src/lib/lttng-ctl/lttng-ctl.c @@ -2114,6 +2114,7 @@ int lttng_list_events(struct lttng_handle *handle, ext_comm->nb_exclusions * LTTNG_SYMBOL_NAME_LEN); if (ret) { ret = -LTTNG_ERR_NOMEM; + goto free_dynamic_buffer; } comm_ext_at += ext_comm->nb_exclusions * LTTNG_SYMBOL_NAME_LEN; }