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

            Bug ID: 33858
           Summary: Object Attributes v2 memory leaks
           Product: binutils
           Version: 2.47 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: amodra at gmail dot com
  Target Milestone: ---

Created attachment 16600
  --> https://sourceware.org/bugzilla/attachment.cgi?id=16600&action=edit
framework patch

Object Attributes v2 code doesn't free memory on lists attached to
elf_obj_attr_subsections.  This results in direct leaks under valgrind and asan
when the bfd and tdata memory is freed.  Fixing this isn't quite so simple as
the attached patch, because lists are merged and copied resulting in multiple
pointers to the same memory.  Work needs to be done to remove an item on one
list when adding it to another list.

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

Reply via email to