[Bug libfortran/35063] [Regression wrt g77] I/O leaks handles/memory on Windows XP

fxcoudert at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Feb 8 14:40:00 GMT 2008



------- Comment #26 from fxcoudert at gcc dot gnu dot org  2008-02-08 14:39 -------
(In reply to comment #25)
> With external units we have a treap structure which
> holds pointers to the unit structures so that we reuse them as needed.

I haven't looked at the source code, but I can assure you that the following
code clearly shows on Windows that we leak handles for external units. It is
fact.

   character(len=1) :: string
   do
     open(10,file="foo",status="replace")
     write(10,'()')
    close(10)
  end do
  end

Compile it, run it with Task manager open, and see handle count increase.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35063



More information about the Gcc-bugs mailing list