aboutsummaryrefslogtreecommitdiff
path: root/gas/config/te-vms.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2022-07-07 22:09:28 +0930
committerAlan Modra <amodra@gmail.com>2022-07-09 21:35:15 +0930
commita51628a9d49bf7abb89b71032aa38d7f596be674 (patch)
treeebd0b9d19c464fa5e51c3c37dbdae165a7d05738 /gas/config/te-vms.c
parent654d6f31a644d1381c76d3d70ce3ca9f45a08597 (diff)
downloadgdb-a51628a9d49bf7abb89b71032aa38d7f596be674.zip
gdb-a51628a9d49bf7abb89b71032aa38d7f596be674.tar.gz
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/te-vms.c')
0 files changed, 0 insertions, 0 deletions