STINNER Victor <vstin...@python.org> added the comment:

> See also bpo-46476: Not all memory allocated by _Py_Quicken() is released at 
> Python exit.

If you apply my workaround for bpo-46476:
https://bugs.python.org/issue46476#msg411321

Python no longer leaks any memory block at exit for the simplest command!

$ ./python -I -X showrefcount -c pass
[-5 refs, 0 blocks]

Moreover, I modified deepfreeze to only freeze importlib._bootstrap and 
importlib._bootstrap_external. It confirms that bpo-46449 is causing the 
negative reference count, because with these additional local changes I get a 
positive _Py_RefTotal:

$ ./python -I -X showrefcount -c pass
[6 refs, 0 blocks]

----------

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

Reply via email to