]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gas reloc_list memory leaks
authorAlan Modra <amodra@gmail.com>
Wed, 1 Jan 2025 12:19:48 +0000 (22:49 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 1 Jan 2025 12:19:48 +0000 (22:49 +1030)
commitd4faef1077bdd21d3515eb0355bd406652758b3a
tree79a1712fa53951519e8e906853dde7bd0f1b6fcb
parent3fb6f5457e5b53fdb73a98a24b3764e821e8ccc5
gas reloc_list memory leaks

Put these on the notes obstack too.

* config/tc-wasm32.c (wasm32_leb128): Use notes_alloc for
reloc_list vars.
* read.c (s_reloc): Likewise.
* write.c (create_note_reloc): Likewise.
(write_object_file): Reset reloc_list after write_relocs.
gas/config/tc-wasm32.c
gas/read.c
gas/write.c