mirror of
https://github.com/ianlancetaylor/libbacktrace.git
synced 2026-03-16 23:39:06 +08:00
* pecoff.c (coff_add): Only release syms_view if it is valid.
This commit is contained in:
7
pecoff.c
7
pecoff.c
@@ -804,8 +804,11 @@ coff_add (struct backtrace_state *state, int descriptor,
|
||||
|
||||
backtrace_release_view (state, §s_view, error_callback, data);
|
||||
sects_view_valid = 0;
|
||||
backtrace_release_view (state, &syms_view, error_callback, data);
|
||||
syms_view_valid = 0;
|
||||
if (syms_view_valid)
|
||||
{
|
||||
backtrace_release_view (state, &syms_view, error_callback, data);
|
||||
syms_view_valid = 0;
|
||||
}
|
||||
|
||||
/* Read all the debug sections in a single view, since they are
|
||||
probably adjacent in the file. We never release this view. */
|
||||
|
||||
Reference in New Issue
Block a user