New submission from zasdfgbnm <qasdfgtyu...@gmail.com>:
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. ---------- components: Interpreter Core files: structseq.tar.xz messages: 336699 nosy: zasdfgbnm priority: normal pull_requests: 12082 severity: normal status: open title: Reference count leakage in structseq_repr type: behavior versions: Python 2.7 Added file: https://bugs.python.org/file48172/structseq.tar.xz _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue36126> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com