libbacktrace: don't free ELF strtab if error occurs after saving syminfo

Fixes #29
This commit is contained in:
Ian Lance Taylor
2020-02-19 10:32:09 -08:00
parent 4e548e735f
commit ca0de0517f

1
elf.c
View File

@@ -3011,6 +3011,7 @@ elf_add (struct backtrace_state *state, const char *filename, int descriptor,
string table permanently. */
backtrace_release_view (state, &symtab_view, error_callback, data);
symtab_view_valid = 0;
strtab_view_valid = 0;
*found_sym = 1;