[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.
Cheers
Nick
bfd/ChangeLog
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
table.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=868
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
- [Bug binutils/868] bfd leaks memory in several places, diogo at kraemer dot eng dot br, 2008/02/14
- [Bug binutils/868] bfd leaks memory in several places, nickc at redhat dot com, 2008/02/20
- [Bug binutils/868] bfd leaks memory in several places,
nickc at redhat dot com <=
- [Bug binutils/868] bfd leaks memory in several places, nickc at redhat dot com, 2008/02/20
- [Bug binutils/868] bfd leaks memory in several places, nickc at redhat dot com, 2008/02/20
- [Bug binutils/868] bfd leaks memory in several places, nickc at redhat dot com, 2008/02/22
- [Bug binutils/868] bfd leaks memory in several places, amodra at bigpond dot net dot au, 2008/02/22
- [Bug binutils/868] bfd leaks memory in several places, nickc at redhat dot com, 2008/02/25