mirror of git://gcc.gnu.org/git/gcc.git
* pecoff.c (coff_add): Only release syms_view if it is valid.
From-SVN: r257053
This commit is contained in:
parent
45f3ab193d
commit
a794e494c6
|
|
@ -1,3 +1,7 @@
|
||||||
|
2018-01-25 Ian Lance Taylor <iant@golang.org>
|
||||||
|
|
||||||
|
* pecoff.c (coff_add): Only release syms_view if it is valid.
|
||||||
|
|
||||||
2018-01-25 Ian Lance Taylor <iant@golang.org>
|
2018-01-25 Ian Lance Taylor <iant@golang.org>
|
||||||
|
|
||||||
* pecoff.c (coff_add): Another memcpy -> coff_read4 fix.
|
* pecoff.c (coff_add): Another memcpy -> coff_read4 fix.
|
||||||
|
|
|
||||||
|
|
@ -804,8 +804,11 @@ coff_add (struct backtrace_state *state, int descriptor,
|
||||||
|
|
||||||
backtrace_release_view (state, §s_view, error_callback, data);
|
backtrace_release_view (state, §s_view, error_callback, data);
|
||||||
sects_view_valid = 0;
|
sects_view_valid = 0;
|
||||||
backtrace_release_view (state, &syms_view, error_callback, data);
|
if (syms_view_valid)
|
||||||
syms_view_valid = 0;
|
{
|
||||||
|
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
|
/* 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. */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue