mirror of
https://github.com/ianlancetaylor/libbacktrace.git
synced 2026-03-29 05:29:07 +08:00
libbacktrace: don't free ELF strtab if error occurs after saving syminfo
Fixes #29
This commit is contained in:
1
elf.c
1
elf.c
@@ -3011,6 +3011,7 @@ elf_add (struct backtrace_state *state, const char *filename, int descriptor,
|
|||||||
string table permanently. */
|
string table permanently. */
|
||||||
backtrace_release_view (state, &symtab_view, error_callback, data);
|
backtrace_release_view (state, &symtab_view, error_callback, data);
|
||||||
symtab_view_valid = 0;
|
symtab_view_valid = 0;
|
||||||
|
strtab_view_valid = 0;
|
||||||
|
|
||||||
*found_sym = 1;
|
*found_sym = 1;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user