[Python-bugs-list] [ python-Bugs-461611 ] listextend memory leak

noreply@sourceforge.net noreply@sourceforge.net
Fri, 14 Sep 2001 11:01:07 -0700


Bugs item #461611, was opened at 2001-09-14 11:01
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=461611&group_id=5470

Category: Python Interpreter Core
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: listextend memory leak

Initial Comment:
Under Python 2.0.1, the following leaks:

  for i in xrange(10000000):
      lst = ['a']
      lst.extend(10*[])

However, this doesn't:

  for i in xrange(10000000):
      lst = ['a']
      lst.extend(10*['b'])

We see this on WinNT and Win2K.  It's not clear from 
looking at listobject.c why this happens.


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=461611&group_id=5470