[Python-Dev] memory leaks in 2.2

Ka-Ping Yee ping@lfw.org
Thu, 6 Dec 2001 01:57:41 -0800 (PST)

On Wed, 5 Dec 2001, Neal Norwitz wrote:
> Here is a list of all the outstanding memory leaks from the regression tests.
> All of these leaks have a bug report on SF.
> test_descr:	117 bytes (0.0407%)

Okay, i have tested this case and narrowed it down to:

    while 1:
        class C:
            __metaclass__ = type

Try it on a Python interpreter near you.  With mine, it grows
without bound.

As far as i can tell, of all the calls in test_descr.test_main,
only metaclass() leaks memory.

-- ?!ng