[Python-Dev] compile leaks memory. lots of memory.

Fredrik Lundh fredrik@effbot.org
Wed, 21 Feb 2001 22:12:03 +0100


while 1: compile("print 'hello'\n", "<string>", "exec")

current CVS leaks just over 1k per call to compile.
1.5.2 and 2.0 doesn't leak a byte.

make the script a little more complex, and it leaks even
more (4k for a small function, 650k for Tkinter.py, etc).

Cheers /F