[issue30615] [EASY][2.7] test_recursive_repr() of test_xml_etree_c leaks references

STINNER Victor report at bugs.python.org
Fri Jun 9 12:21:29 EDT 2017


STINNER Victor added the comment:

The leak is in the element_repr() function of Modules/_elementtree.c.

Py_ReprEnter() creates an internal list to track objects, and so requires that Py_ReprLeave() is always called, even on error, to destroy these objects. Is it the case here? ;-)

----------
keywords: +easy (C)

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30615>
_______________________________________


More information about the Python-bugs-list mailing list