diff options
author | Alan Modra <amodra@gmail.com> | 2022-07-07 22:09:28 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2022-07-09 21:35:15 +0930 |
commit | a51628a9d49bf7abb89b71032aa38d7f596be674 (patch) | |
tree | ebd0b9d19c464fa5e51c3c37dbdae165a7d05738 /gas/config/obj-coff-seh.c | |
parent | 654d6f31a644d1381c76d3d70ce3ca9f45a08597 (diff) | |
download | fsf-binutils-gdb-a51628a9d49bf7abb89b71032aa38d7f596be674.zip fsf-binutils-gdb-a51628a9d49bf7abb89b71032aa38d7f596be674.tar.gz fsf-binutils-gdb-a51628a9d49bf7abb89b71032aa38d7f596be674.tar.bz2 |
arc gas: don't leak arc_opcode_hash memory
The arc opcode hash table has entries that have a realloc'd field.
This doesn't lend itself to obstack allocation, so freeing must be
done with a purpose built hashtab del_f.
* config/tc-arc.c (arc_opcode_free): New function.
(md_begin): Pass the above as del_f to htab_create_alloc.
(arc_md_end): New function.
* config/tc-arc.h (arc_md_end): Declare.
(md_end): Define.
Diffstat (limited to 'gas/config/obj-coff-seh.c')
0 files changed, 0 insertions, 0 deletions