From 09f3038c7ceb232e9eedf4e3542bb1084bae3d85 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Wed, 29 Aug 2018 17:17:03 -0400 Subject: [PATCH] Fix: leak of probe_locs on error MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- src/common/lttng-elf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/lttng-elf.c b/src/common/lttng-elf.c index 5d3aaad04..62d8d9246 100644 --- a/src/common/lttng-elf.c +++ b/src/common/lttng-elf.c @@ -994,7 +994,7 @@ int lttng_elf_get_sdt_probe_offsets(int fd, const char *provider_name, */ if (curr_semaphore_location != 0) { ret = LTTNG_ERR_SDT_PROBE_SEMAPHORE; - goto end; + goto realloc_error; } new_size = (++nb_match) * sizeof(uint64_t); -- 2.34.1