This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Memory leak in itertools.chain()
Type: resource usage Stage:
Components: Extension Modules Versions: Python 2.5.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: rhettinger Nosy List: belopolsky, loewis, ocean-city, rhettinger
Priority: normal Keywords: patch

Created on 2008-03-04 13:10 by ocean-city, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
fix_leak.patch ocean-city, 2008-03-04 13:10
Messages (5)
msg63252 - (view) Author: Hirokazu Yamamoto (ocean-city) * (Python committer) Date: 2008-03-04 13:10
Fixed memory leak in itertools.chain().
This fixes following refleak errors shown in issue2223.
test_deque test_heapq test_itertools test_list test_set test_userlist
msg63253 - (view) Author: Alexander Belopolsky (belopolsky) * (Python committer) Date: 2008-03-04 13:54
Good catch, Hirokazu!

The patch looks correct to me.

Works as advertised on Mac OS 10.4.
msg63267 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2008-03-04 22:34
Fixed in r61237.
msg75008 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2008-10-20 21:25
Backport candidate
msg75019 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2008-10-21 06:45
The affected code did not exist in Py2.5.
The patch made it to both Py2.6 and Py3.0.
Closing.
History
Date User Action Args
2022-04-11 14:56:31adminsetgithub: 46484
2008-10-21 06:45:23rhettingersetstatus: open -> closed
messages: + msg75019
2008-10-20 21:27:46loewissetstatus: closed -> open
2008-10-20 21:25:00loewissetnosy: + loewis
messages: + msg75008
versions: + Python 2.5.3, - Python 2.6, Python 3.0
2008-03-04 22:34:01rhettingersetstatus: open -> closed
resolution: fixed
messages: + msg63267
2008-03-04 16:26:27rhettingersetassignee: rhettinger
nosy: + rhettinger
2008-03-04 13:54:28belopolskysetnosy: + belopolsky
messages: + msg63253
2008-03-04 13:10:43ocean-citycreate