This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Is this a bug in libffi testsuite on solaris2.8?
- From: Andrew Haley <aph at redhat dot com>
- To: dewar at gnat dot com (Robert Dewar)
- Cc: zack at codesourcery dot com, gcc at gcc dot gnu dot org, lucier at math dot purdue dot edu
- Date: Sun, 2 Nov 2003 17:31:21 +0000
- Subject: Re: Is this a bug in libffi testsuite on solaris2.8?
- References: <20031031193948.D6890F2DEA@nile.gnat.com>
Robert Dewar writes:
> > > Not necessarily: the memory for the trampoline is allocated by the
> > > caller, and can be anywhere. However, unwindtest.c does indeed
> > > allocate it on the stack.
>
> hmmm. where else could you put it and be sure not to have a memory leak?
On the heap -- where's the problem? This is no more likely to cause a
memory leak than any other use of malloc().
Andrew.