aboutsummaryrefslogtreecommitdiff
path: root/gdb/infrun.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2023-07-14 10:47:30 +0930
committerAlan Modra <amodra@gmail.com>2023-07-14 11:53:48 +0930
commit6d872a1a807dc3f347808e853111dec7770ee0a9 (patch)
tree6afe7f57e29782ff440a57bceb630074bc6ecb14 /gdb/infrun.c
parent478409b71d3e80647904540e518897667bd352b2 (diff)
downloadgdb-6d872a1a807dc3f347808e853111dec7770ee0a9.zip
gdb-6d872a1a807dc3f347808e853111dec7770ee0a9.tar.gz
gdb-6d872a1a807dc3f347808e853111dec7770ee0a9.tar.bz2
More tidies to objcopy archive handling
This makes sure copy_archive exits with ibfd and obfd closed. Error paths didn't do that, leading to memory leaks. None of this matters very much. * objcopy.c (copy_archive): bfd_close ibfd and obfd on error return paths. Remove braces around "list" free. (copy_file): Don't close invalid file descriptor.
Diffstat (limited to 'gdb/infrun.c')
0 files changed, 0 insertions, 0 deletions