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: gcc at gcc dot gnu dot org, lucier at math dot purdue dot edu, zack at codesourcery dot com
- Date: Sun, 2 Nov 2003 22:41:10 +0000
- Subject: Re: Is this a bug in libffi testsuite on solaris2.8?
- References: <20031102183203.DC686F2D55@nile.gnat.com>
Robert Dewar writes:
> > On the heap -- where's the problem? This is no more likely to cause a
> > memory leak than any other use of malloc().
> >
> > Andrew.
>
> I don't see that, if a user uses malloc, then it is up to the user to do the
> free. here we have an implicit use of malloc,
No we don't. It's up to the caller to provide the memory.
Andrew.