This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Is this a bug in libffi testsuite on solaris2.8?


> > 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]