PATCH: Return NULL on NULL bfd (Problem with linker with binutils-040414)

Alan Modra amodra@bigpond.net.au
Tue Apr 20 02:20:00 GMT 2004


On Mon, Apr 19, 2004 at 04:50:48PM -0400, Ian Lance Taylor wrote:
> I actually see that bfd_archive_filename hides a bfd_malloc failure by
> returning an incorrect value.  I also see that it unpredictably causes
> a space leak.  I think this function needs some more attention in any
> case.  If the comment is true that it is only used when building error
> messages, then none of this matters very much.

The comment is true.  What space leak?

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list