[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/868] bfd leaks memory in several places

From: nickc at redhat dot com
Subject: [Bug binutils/868] bfd leaks memory in several places
Date: 20 Feb 2008 15:56:10 -0000

------- Additional Comments From nickc at redhat dot com  2008-02-20 15:56 
Hi Diogo,

  You are correct, the dwarf2.c code does not clean up its memory usage very
well.  The patch you suggested is a start, but it does not go far enough.  For
example it does not free the varinfo and funcinfo structures that are also
allocated in scan_unit_for_symbols.  So I am going to apply the uploaded
variation on your patch, along with this changelog entry.

  I notice that I did not follow up on the bfd_realloc_or_free function idea
either, so I will do that as well.


2008-02-20  Diogo de Carvalho Kraemer  <address@hidden>
            Nick Clifton  <address@hidden>

        PR 868
        * dwarf2.c (read_abbrevs): Free the abbreviation table if we run
        out of memory.
        (decode_line_info): Free the line_info_table before returning a
        failure result.
        (_bfd_dwarf2_cleanup_debug_info): Free the abbreviation table.
        Free the line table.  Free the function table.  Free the variable



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]