https://sourceware.org/bugzilla/show_bug.cgi?id=33858

--- Comment #2 from Sourceware Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Alan Modra <[email protected]>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=7b7fd9f36112a7710201fcd88868c36935a21c39

commit 7b7fd9f36112a7710201fcd88868c36935a21c39
Author: Alan Modra <[email protected]>
Date:   Tue Feb 10 10:34:48 2026 +1030

    PR 33858 Object Attributes v2 memory leaks

    It is possble for elf_object_p to hit errors after or during the loop
    processing sections with bfd_section_from_shdr.  That means we might
    have some object attributes malloc'd.  They need cleaning up in
    elf_object_p because bfd_check_format_matches only handles tidying of
    bfd_alloc memory.

            * elfcode.h (elf_object_p): Free object attributes on failure.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to