Fix: leak of event attributes on copy failure
[lttng-tools.git] / src / common / lttng-elf.c
index 62d8d92468921858aa752b6da1b1f051bcf20fd8..f5702ae453f4df08625ced8e5cdcf82367b6c502 100644 (file)
@@ -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;
        }
@@ -909,7 +908,6 @@ int lttng_elf_get_sdt_probe_offsets(int fd, const char *provider_name,
                goto destroy_elf_error;
        }
 
-       curr_data_ptr = stap_note_section_data;
        next_note_ptr = stap_note_section_data;
        curr_note_section_begin = stap_note_section_data;
 
This page took 0.024957 seconds and 4 git commands to generate.