1486805 Resource leak
The system resource will not be reclaimed and reused, reducing the future availability of the resource.
In lttng_elf_get_symbol_offset: Leak of memory or pointers to system resources (CWE-404)
Reported-by: Coverity Scan
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I78b868773b389c2eaf3f1d45151fe9416b1fe447
if (symtab_hdr.sh_entsize == 0) {
DBG("Invalid ELF string table entry size.");
ret = LTTNG_ERR_ELF_PARSING;
- goto free_symbol_table_data;
+ goto free_string_table_data;
}
sym_count = symtab_hdr.sh_size / symtab_hdr.sh_entsize;