[Python-Dev] code objects leakin'

Jeremy Hylton jeremy@alum.mit.edu
Thu, 1 Mar 2001 00:49:33 -0500 (EST)


It looks like code objects are leaked with surprising frequency.  I
added a simple counter that records all code object allocs and
deallocs.  For many programs, the net is zero.  For some, including
setup.py and the regression test, it's much larger than zero.

I've got no time to look at this before the beta, but perhaps someone
else does.  Even if it can't be fixed, it would be helpful to know
what's going wrong.

I am fairly certain that recursive functions are being leaked, even
after patching function object's traverse function to visit the
func_closure.

Jeremy