]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
objdump: Delete close optimisation
authorAlan Modra <amodra@gmail.com>
Thu, 12 Dec 2024 22:22:57 +0000 (08:52 +1030)
committerAlan Modra <amodra@gmail.com>
Fri, 13 Dec 2024 03:26:15 +0000 (13:56 +1030)
commitd2cca35960319a7a0087ffda4beb679a23181df4
treef3658394b46536819301b2fc9862b4ea795efc5d
parent27e69fa7e921760de0736355b9d8b7d1f3901486
objdump: Delete close optimisation

In commit cd6581da62c3, Nick made an optimisation that was reasonable
at the time, but then pr22032 came along and commit 7c0ed39626e3 made
bfd_close_all_done free memory.  So Nick's optimisation is now
ineffective, and the comment wrong.

* objdump.c (display_file): Delete last_file param.  Update
caller.  Call bfd_close always.
binutils/objdump.c