X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Flttng-elf.c;h=118fc75af283acb18cc6aad277892282cfac79e3;hb=28cff59fb9ef4a4cdef7252708cc967b4e7a4f72;hp=5d3aaad04bf098a5fc60f1407c5a2bad8f6e547d;hpb=d3be549561ae1a35dba8f2b0eb400f06980a390c;p=lttng-tools.git diff --git a/src/common/lttng-elf.c b/src/common/lttng-elf.c index 5d3aaad04..118fc75af 100644 --- a/src/common/lttng-elf.c +++ b/src/common/lttng-elf.c @@ -331,7 +331,6 @@ struct lttng_elf_shdr *lttng_elf_get_section_hdr(struct lttng_elf *elf, ret = populate_section_header(elf, section_header, index); if (ret) { - ret = LTTNG_ERR_ELF_PARSING; DBG("Error populating section header."); goto error; } @@ -994,7 +993,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);