]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
thin archive with nested archive memory leak
authorAlan Modra <amodra@gmail.com>
Wed, 1 Jan 2025 12:21:34 +0000 (22:51 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 1 Jan 2025 12:21:34 +0000 (22:51 +1030)
commitbc67f5df706ff54348b386669cadd686cdae0e71
tree91bed6f73e05ae9a273e2883b52d1a137935da49
parent50dd43e6e3614d337e85a36aaed8224124fe3087
thin archive with nested archive memory leak

The only reason to keep new_areldata around was for access to the
filename, but we now always take a copy in alloc'd memory.

* archive.c (_bfd_get_elt_at_filepos): Free new_areldata when
it is not attached to bfd.
bfd/archive.c