[Patches] Fix for memory leak in _PyResize_Tuple

Guido van Rossum guido@python.org
Fri, 21 Apr 2000 16:43:42 -0400


Did this ever get resolved?  I personally am in Charles' camp: the
problem he fixes is more serious than the problem that Jeremy wants to
fix at the same time.

I thought about the latter problem when I coded the free list, long
ago.  I decided not to lose sleep over it: it seems more likely that
code which allocates a million small tuples and then releases them all
will do so again soon; or will exit soon.

But Charles' problem surprised me: that a simple loop like that can
leak memory was not at all expected.  So I propose to use Charles'
patch.

--Guido van Rossum (home page: http://www.python.org/~guido/)