Skip to content

Commit ca0de05

Browse files
libbacktrace: don't free ELF strtab if error occurs after saving syminfo
Fixes #29
1 parent 4e548e7 commit ca0de05

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

elf.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3011,6 +3011,7 @@ elf_add (struct backtrace_state *state, const char *filename, int descriptor,
30113011
string table permanently. */
30123012
backtrace_release_view (state, &symtab_view, error_callback, data);
30133013
symtab_view_valid = 0;
3014+
strtab_view_valid = 0;
30143015

30153016
*found_sym = 1;
30163017

0 commit comments

Comments
 (0)