[gfortran] patch for unlink on open files

Steve Kargl sgk@troutmask.apl.washington.edu
Sun Aug 7 17:25:00 GMT 2005


On Sun, Aug 07, 2005 at 06:29:07PM +0200, FX Coudert wrote:
> >I've submitted a patch to remove the use of PATH_MAX
> >from gfortran.
> 
> Oh, I should have remembered that. I'll submit a new patch with that 
> changed.

That's why we review patches. :-o

> By the way, looking at your patch, I'm wondering whether this creates a 
> memory leak. You never free the memory allocated?

Andrew already pointed out that alloca uses the stack, so
memory is reaped at function exit.  I can use gfc_getmem
and gfc_free if you think we should be using the heap.

-- 
Steve



More information about the Fortran mailing list