[issue35502] Memory leak in xml.etree.ElementTree.iterparse

STINNER Victor report at bugs.python.org
Fri Dec 14 15:11:04 EST 2018


STINNER Victor <vstinner at redhat.com> added the comment:

I wrote attached run.py which confirms a leak using tracemalloc:

$ python3 run.py 
1 calls: 15.3B / call (total: 15.3 kB)
100 calls: 15.3B / call (total: 1527.7 kB)
1000 calls: 15.3B / call (total: 15265.0 kB)

----------
nosy: +vstinner
Added file: https://bugs.python.org/file47998/run.py

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35502>
_______________________________________


More information about the Python-bugs-list mailing list