bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/868] bfd leaks memory in several places


From: nickc at redhat dot com
Subject: [Bug binutils/868] bfd leaks memory in several places
Date: 25 Feb 2008 10:23:49 -0000

------- Additional Comments From nickc at redhat dot com  2008-02-25 10:23 
-------
Hi Alan,

> What is the point of the patch in comment #1?  If we fail a realloc we are
> shortly going to exit with an error.

Not necessarily.  It is possible whatever was being attempted at the time will
be aborted, but that the program will carry on rather than just exiting.

Besides it is better to be paranoid and free an allocated block of memory if all
the remaining pointers to it are about to be discarded, rather than just leaving
it orphaned.

Cheers
  Nick


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=868

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]