This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Dwarf2.c:read_attribute_value - isn't it a leak?
- From: Dmitry Smirnov <divis1969 at gmail dot com>
- To: binutils at sourceware dot org
- Date: Mon, 1 Mar 2010 12:44:26 +0300
- Subject: Dwarf2.c:read_attribute_value - isn't it a leak?
Hi,
There is seems to a be a leak at dwarf2.c (function
read_attribute_value, allocations of dwarf_block in DW_FORM_blockX
cases).
While using BFD (modified a little bit) i had found that my program
permanently increases a heap memory consumption.
Thought it might be relative to changes I made in BFD (perhaps
originla BFD does not permanently eats memory), I suppose it is a real
leak that you might wish to fix.
I'm using a BFD from GDB 7.0.1. Its version, I suppose, is 20090916.
Dmitry