diff options
author | Alan Modra <amodra@gmail.com> | 2020-03-13 13:21:15 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-03-13 14:26:24 +1030 |
commit | fd486f32d15e3299b905084a697fac6349c43f76 (patch) | |
tree | 19dd88d1110f8a2e5ef2baa44a7e180a9d3e2467 /libctf/ctf-open-bfd.c | |
parent | 49ba92c0a6765ee7dc3a773c1a044680d29cee0e (diff) | |
download | gdb-fd486f32d15e3299b905084a697fac6349c43f76.zip gdb-fd486f32d15e3299b905084a697fac6349c43f76.tar.gz gdb-fd486f32d15e3299b905084a697fac6349c43f76.tar.bz2 |
asan: more readelf leaks
* elfcomm.c (get_archive_member_name): Always return malloc'd
string or NULL.
* elfedit.c (process_archive): Tidy memory on all return paths.
* readelf.c (process_archive): Likewise.
(process_symbol_table): Likewise.
(ba_cache): New, replacing ..
(get_symbol_for_build_attribute): ..static vars here. Free
strtab and symtab before loading new ones. Reject symtab without
valid strtab in loop, breaking out of loop on valid symtab.
(process_file): Free ba_cache symtab and strtab here, resetting
ba_cache.
Diffstat (limited to 'libctf/ctf-open-bfd.c')
0 files changed, 0 insertions, 0 deletions