Dwarf2.c:read_attribute_value - isn't it a leak?

Dmitry Smirnov divis1969@gmail.com
Mon Mar 1 09:44:00 GMT 2010


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



More information about the Binutils mailing list