diff options
author | Alan Modra <amodra@gmail.com> | 2023-05-30 20:05:38 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2023-06-01 09:51:59 +0930 |
commit | 90fd5049bde965ad217a013398ffc722f298de82 (patch) | |
tree | 79a60f6bc8d4cc6598fda31a3f2063262aba8a54 /Makefile.def | |
parent | d18f60c747c220ef8ca118b61e5db5c5cdf8f28b (diff) | |
download | gdb-90fd5049bde965ad217a013398ffc722f298de82.zip gdb-90fd5049bde965ad217a013398ffc722f298de82.tar.gz gdb-90fd5049bde965ad217a013398ffc722f298de82.tar.bz2 |
section_by_target_index memory leak
The rs6000 backend can call coff_section_from_bfd_index from its
object_p function via coff_set_alignment_hook. If the object doesn't
match, or another target matches too, then the hash table needs to be
freed via a cleanup.
* coffgen.c (coff_object_cleanup): New function.
(coff_real_object_p): Return coff_object_cleanup, and call on
failure path. Move declaration to..
* libcoff-in.h: ..here.
(coff_object_cleanup): Declare.
* coff-stgo32.c (go32exe_cleanup): Call coff_object_cleanup.
(go32exe_check_format): Adjust assertion.
* libcoff.h: Regenerate.
Diffstat (limited to 'Makefile.def')
0 files changed, 0 insertions, 0 deletions