[Bug gdb/12243] New: Memory leak

jan.kratochvil at redhat dot com sourceware-bugzilla@sourceware.org
Sat Nov 20 09:36:00 GMT 2010


           Summary: Memory leak
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: gdb
        AssignedTo: unassigned@sourceware.org
        ReportedBy: jan.kratochvil@redhat.com

There is a check-in:

    Fix stale memory references.
    * elfread.c (elf_symfile_read): Replace xmalloc by bfd_alloc, drop
    xfree, new comment.

But during SIGINT it may leak memory now.  As this function is already ELF
specific it should be possible to access the internal BFD ELF field to check if
it the memory reference is set there.

Some binutils/ utilities should be fixed accordingly.

Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the Gdb-prs mailing list