STINNER Victor added the comment:

> 68b2a43d8653 introduced memory leak.

I was very surprised to see a regression in test_format since I didn't change 
any change related to bytes, bytearray or str formatting in this issue.

In fact, it's much better than that! With PyMem_Malloc() using pymalloc, we 
benefit for free of the cheap "_Py_AllocatedBlocks" memory leak detector. I 
introduced the memory leak in the issue #25349 when I optimimzed bytes%args and 
bytearray%args using the new _PyBytesWriter API.

This memory leak gave me an idea, I opened the issue #26850: 
"PyMem_RawMalloc(): update also sys.getallocatedblocks() in debug mode".

----------

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

Reply via email to