[New-bugs-announce] [issue46857] Python leaks one reference at exit on Windows
STINNER Victor
report at bugs.python.org
Fri Feb 25 11:57:11 EST 2022
New submission from STINNER Victor <vstinner at python.org>:
"./python -X showrefcount -I -c pass" returns "[0 refs, 0 blocks]" as expected on Linux: Python doesn't leak any reference nor memory block.
But on Windows, it still leaks 1 reference (and 1 memory block)!
vstinner at DESKTOP-DK7VBIL C:\vstinner\python\main>python -X showrefcount -I -c pass
[1 refs, 1 blocks]
I recently added a test in test_embed which now fails on Windows.
See bpo-1635741 "Py_Finalize() doesn't clear all Python objects at exit" for the context.
----------
components: Interpreter Core
messages: 414020
nosy: vstinner
priority: normal
severity: normal
status: open
title: Python leaks one reference at exit on Windows
versions: Python 3.11
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46857>
_______________________________________
More information about the New-bugs-announce
mailing list