aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-unwind.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2023-02-12 22:34:27 +1030
committerAlan Modra <amodra@gmail.com>2023-02-13 12:53:31 +1030
commit3eef3b2c2d85bb0b83a4e902d4444400ddfde0ab (patch)
tree27eb69a964016a8289525ed81546aa32f38ed534 /gdb/python/py-unwind.c
parentf6b9eb5e296da177a353b4b73239b80a0cd551a2 (diff)
downloadbinutils-3eef3b2c2d85bb0b83a4e902d4444400ddfde0ab.zip
binutils-3eef3b2c2d85bb0b83a4e902d4444400ddfde0ab.tar.gz
binutils-3eef3b2c2d85bb0b83a4e902d4444400ddfde0ab.tar.bz2
objcopy memory leaks
This fixes some objcopy memory leaks. commit 450da4bd38ae used xatexit to tidy most of the hash table memory, but of course that's ineffective without a call to xexit. The other major memory leak happens if there is an error of some sort writing the output file, due to not closing the input file and thus not freeing memory attached to the bfd. * objcopy.c (copy_file): Don't return when bfd_close of output gives an error, always bfd_close input too. (main): Call xexit.
Diffstat (limited to 'gdb/python/py-unwind.c')
0 files changed, 0 insertions, 0 deletions