Commit ca0de051 by Ian Lance Taylor

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

Fixes #29
parent 4e548e73
...@@ -3011,6 +3011,7 @@ elf_add (struct backtrace_state *state, const char *filename, int descriptor, ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment