commit | ea7672c10e0b762c02fd40ce94d490b56bc14675 | [log] [tgz] |
---|---|---|
author | Alan Modra <amodra@gmail.com> | Wed Mar 29 22:31:15 2023 +1030 |
committer | Alan Modra <amodra@gmail.com> | Thu Mar 30 15:18:02 2023 +1030 |
tree | a0a5df4f73e69223d1b8e6b569b09dcdae091561 | |
parent | 45fec14c029491329d769eae29021b4cb0cdd2c3 [diff] |
Fix memory leak in bfd_get_debug_link_info_1 * opncls.c (bfd_get_alt_debug_link_info): Don't bother freeing after bfd_malloc_and_get_section failure. (get_build_id): Likewise. (bfd_get_debug_link_info_1): Likewise. Free section contents when crc not present. * section.c (bfd_malloc_and_get_section): Document that the buffer is NULL on error return.