Tidy leaked objcopy memory
authorAlan Modra <amodra@gmail.com>
Wed, 29 Mar 2023 11:35:59 +0000 (22:05 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 30 Mar 2023 04:48:02 +0000 (15:18 +1030)
commit45fec14c029491329d769eae29021b4cb0cdd2c3
treeeaabb857a88f6258c5d25e64860545d3fce60435
parenta2276a6d67195b27b91edf14081303616b2bb76e
Tidy leaked objcopy memory

* objcopy.c (delete_symbol_htabs): Also free symbols.
(write_debugging_info): Free strings and syms once written.
* wrstabs.c (write_stabs_in_sections_debugging_info): memset
entire info struct.  Free hash tables before returning.  Free
syms on error return.
binutils/objcopy.c
binutils/wrstabs.c