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.

Author zasdfgbnm
Recipients zasdfgbnm
Date 2019-02-26.17:09:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1551200997.63.0.481035129926.issue36126@roundup.psfhosted.org>
In-reply-to
Content
In Python 2.7 structseq is not a tuple, and in `structseq_repr` a tuple is created to help extracting items. However when the check at https://github.com/python/cpython/blob/2.7/Objects/structseq.c#L268 fails, the reference count of this tuple is not decreased, causing memory leakage.

To reproduce, download the attached file, install and run the `quicktest.py` and watch the memory usage.

This bug only exists on python 2.7, because on python >3.2, no helper tuple is created.
History
Date User Action Args
2019-02-26 17:09:57zasdfgbnmsetrecipients: + zasdfgbnm
2019-02-26 17:09:57zasdfgbnmsetmessageid: <1551200997.63.0.481035129926.issue36126@roundup.psfhosted.org>
2019-02-26 17:09:57zasdfgbnmlinkissue36126 messages
2019-02-26 17:09:57zasdfgbnmcreate