mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 14:59:39 +02:00
libbacktrace: don't free ELF strtab if error occurs after saving syminfo
* elf.c (elf_add): Don't free strtab if an error occurs after recording symbol information.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2020-05-09 Ian Lance Taylor <iant@golang.org>
|
||||
|
||||
* elf.c (elf_add): Don't free strtab if an error occurs after
|
||||
recording symbol information.
|
||||
|
||||
2020-05-09 Ian Lance Taylor <iant@golang.org>
|
||||
|
||||
PR libbacktrace/88745
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user