[Python-bugs-list] [ python-Bugs-678352 ] list.append memory leak ?
SourceForge.net
noreply@sourceforge.net
Fri, 31 Jan 2003 13:00:59 -0800
Bugs item #678352, was opened at 2003-01-31 15:18
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=678352&group_id=5470
Category: Python Interpreter Core
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: thanos vassilakis (thanos)
Assigned to: Nobody/Anonymous (nobody)
Summary: list.append memory leak ?
Initial Comment:
# this SEEMS to leak
l = xrange(10000)
while 1:
a=[]
map(a.append, l)
del a
# this does not
while 1:
a=range(10000)
del a
----------------------------------------------------------------------
>Comment By: Tim Peters (tim_one)
Date: 2003-01-31 16:00
Message:
Logged In: YES
user_id=31435
Please identify the Python version and OS+compiler+C
library in use. The process size remains steady for me under
current CVS Python on Win2K w/ MSVC6.
A true leak is possible but unlikely. More likely is that your
platform C malloc()/free() decide not to return memory to the
OS. If so, that's outside of Python's control
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=678352&group_id=5470