Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

Here is a simpler reproducer.

Actually the problem was not in _createbytearray(), but in converting the 
Python wrapper around Tcl_Obj into Tcl_Obj. _createbytearray() just exposed it. 
The leak exists in Python 3 too, but it is hard to reproduce it.

----------
versions: +Python 3.6, Python 3.7, Python 3.8
Added file: https://bugs.python.org/file47886/leak_demo2.py

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue34794>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to