Commit 8a4e4ea5 by Ian Lance Taylor

* pecoff.c (coff_add): Only release syms_view if it is valid.

parent 97dd0dfa
...@@ -804,8 +804,11 @@ coff_add (struct backtrace_state *state, int descriptor, ...@@ -804,8 +804,11 @@ coff_add (struct backtrace_state *state, int descriptor,
backtrace_release_view (state, &sects_view, error_callback, data); backtrace_release_view (state, &sects_view, error_callback, data);
sects_view_valid = 0; sects_view_valid = 0;
if (syms_view_valid)
{
backtrace_release_view (state, &syms_view, error_callback, data); backtrace_release_view (state, &syms_view, error_callback, data);
syms_view_valid = 0; syms_view_valid = 0;
}
/* Read all the debug sections in a single view, since they are /* Read all the debug sections in a single view, since they are
probably adjacent in the file. We never release this view. */ probably adjacent in the file. We never release this view. */
......
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