This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/12243] New: Memory leak


http://sourceware.org/bugzilla/show_bug.cgi?id=12243

           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:

http://sourceware.org/ml/gdb-cvs/2010-11/msg00094.html
gdb/
    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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]