This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Two memory management questions in BFD - link hash tables
On Thu, Apr 04, 2002 at 09:39:39AM +0930, Alan Modra wrote:
> On Wed, Apr 03, 2002 at 06:10:54PM -0500, Daniel Jacobowitz wrote:
> >
> > It adds bfd_link_hash_table_free (abfd, hash), and changes to
> > malloc'ing the hashes. I can absolutely guarantee that it leaks memory
> > on some platforms; any time we notice one, we can fix it.
> > best I can do, since figuring out where these things are allocated is
> > insanely frustrating...
>
> ldlang.c:open_output
No, I meant the places where all the little structures dangling off of
the hash table get allocated. At least one platform lazily allocates
another hash table.
> The patch looks OK to me.
It's in, before binutils drifts any further away from it.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer