[pypy-issue] [issue912] ZipFile.read() leaks file handles
Andrew McNabb
tracker at bugs.pypy.org
Fri Mar 16 18:49:47 CET 2012
Andrew McNabb <amcnabb at mcnabbs.org> added the comment:
Shouldn't the file object eventually get garbage collected after the ZipFile is
deleted? I ran into a similar problem in my own code where file descriptors were
being leaked under pypy 1.8. Yes, I have now fixed the missing close on the file
object, but I'm still surprised that files weren't eventually garbage collected
and the file descriptors closed. Is this garbage collection behavior a bug, or
am I misunderstanding something?
----------
nosy: +amcnabb
________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue912>
________________________________________
More information about the pypy-issue
mailing list