From ca0de0517f3be44fedf5a2c01cfaf6437d4cae68 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 19 Feb 2020 10:32:09 -0800 Subject: [PATCH] libbacktrace: don't free ELF strtab if error occurs after saving syminfo Fixes #29 --- elf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/elf.c b/elf.c index eb481c5..1216af8 100644 --- a/elf.c +++ b/elf.c @@ -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;