[PATCH v1 1/4] aarch64 gas: free hash tables in md_begin() to avoid memory leaks
Jan Beulich
jbeulich@suse.com
Tue Feb 24 16:39:19 GMT 2026
On 24.02.2026 17:26, Matthieu Longo wrote:
> The AArch64 GAS backend allocates several hash tables in md_begin(). All of
> these hash tables use strings as keys; some of those strings are dynamically
> allocated, while others are statically allocated. None of these hash tables
> have ever been deallocated in aarch64_md_end(), resulting in memory leaks
> that spam LeakSanitizer reports.
>
> The first part of the fix deallocates the hash tables in aarch64_md_end().
By how much does this increase assembly time for small or medium size input?
Jan
More information about the Binutils
mailing list