This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Is it ok to "leak" modest amounts of objalloc memory?
On Thu, Aug 18, 2011 at 12:48 PM, <Paul_Koning@dell.com> wrote:
> It seems like a small thing, but it also feels like a bad precedent. ?How would a future maintainer know that this is a "little leak" and ok, while the exact same code cut & pasted to a different situation is not ok because there the leak is much larger? ?Better to fix the underlying machinery to provide the facility you need.
Thanks for the reply. Do you know, off the top of your head, of any
other targets that resize things? A quick grep found carsym_mem in
vms-lib.c, but having to keep track of whether an object is on the
heap or has been objalloc'ed seems hairy in its own way!