]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-111499: Fix PYTHONMALLOCSTATS at Python exit (GH-120021) (#120022)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 4 Jun 2024 10:02:12 +0000 (12:02 +0200)
committerGitHub <noreply@github.com>
Tue, 4 Jun 2024 10:02:12 +0000 (10:02 +0000)
commit6e67fd5beaa26cd80d43a258c14f6044803d33fa
tree848aa9ebf228cde7e4a3cc64c4038f616ee2e6b0
parent1177897551066c1e8c394809152614a6483f9ce7
[3.13] gh-111499: Fix PYTHONMALLOCSTATS at Python exit (GH-120021) (#120022)

gh-111499: Fix PYTHONMALLOCSTATS at Python exit (GH-120021)

Call _PyObject_DebugMallocStats() earlier in Py_FinalizeEx(), before
the interpreter is deleted.
(cherry picked from commit 5a1205b641df133932ed4c65b9a4ff5724e89963)

Co-authored-by: Victor Stinner <vstinner@python.org>
Python/pylifecycle.c