Fix: leak of probe_locs on error
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 29 Aug 2018 21:17:03 +0000 (17:17 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 30 Aug 2018 16:35:14 +0000 (12:35 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/lttng-elf.c

index 5d3aaad04bf098a5fc60f1407c5a2bad8f6e547d..62d8d92468921858aa752b6da1b1f051bcf20fd8 100644 (file)
@@ -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);
This page took 0.02635 seconds and 4 git commands to generate.