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: Arnaud Charlet <charlet at ACT-Europe dot FR>
- To: Robert Dewar <dewar at gnat dot com>
- Cc: aph at redhat dot com, gcc at gcc dot gnu dot org, lucier at math dot purdue dot edu,zack at codesourcery dot com
- Date: Sun, 2 Nov 2003 23:35:08 +0100
- Subject: Re: Is this a bug in libffi testsuite on solaris2.8?
- References: <20031102183203.DC686F2D55@nile.gnat.com>
> > 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, and the compiler must be
> very careful to make sure this is freed on all possible paths
Not mentioning the fact that some environments do not have any malloc
at all.
Arno