]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Leak in i386_elf_section_change_hook
authorAlan Modra <amodra@gmail.com>
Wed, 21 Feb 2024 21:11:46 +0000 (07:41 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 21 Feb 2024 21:27:15 +0000 (07:57 +1030)
commitfddee222e574dfb0f2ba9ecdc4fb1b5db13bfae9
tree77eee6b707f0eac113afd87393e44ffe86a5834f
parent23acbfee6a82cc147b04b74a89d5b34b47c150f4
Leak in i386_elf_section_change_hook

notes_alloc is perfect for assorted memory you can't free easily
and/or would rather leave freeing until just before exit.

* config/tc-i386.c (i386_elf_section_change_hook): Use notes_alloc.
gas/config/tc-i386.c