Re: Memory leaks in libbfd, trace provided

2012-07-31 Thread Alan Modra
On Mon, Jul 30, 2012 at 09:22:15AM -0400, Alexis Naveros wrote: > I have some code which is using libbfd (binutils 2.22) abundantly, and I > couldn't help but notice memory usage grow to a couple GB after a while. > I'm of course calling bfd_close() for every bfd opened, but some memory > allocated

Memory leaks in libbfd, trace provided

2012-07-30 Thread Alexis Naveros
Hi, I have some code which is using libbfd (binutils 2.22) abundantly, and I couldn't help but notice memory usage grow to a couple GB after a while. I'm of course calling bfd_close() for every bfd opened, but some memory allocated from within libbfd.so is never freed. I plugged my home-made memo