diff options
author | Victor Stinner <vstinner@python.org> | 2020-07-02 01:19:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-02 01:19:57 +0200 |
commit | 666ecfb0957a2fa0df5e2bd03804195de74bdfbf (patch) | |
tree | 7d848ed239aeeece4ac47aaec793d1368d531b78 /Python/pylifecycle.c | |
parent | bpo-40521: Cleanup finalize_interp_types() (GH-21265) (diff) | |
download | cpython-666ecfb0957a2fa0df5e2bd03804195de74bdfbf.tar.gz cpython-666ecfb0957a2fa0df5e2bd03804195de74bdfbf.tar.bz2 cpython-666ecfb0957a2fa0df5e2bd03804195de74bdfbf.zip |
bpo-1635741: Release Unicode interned strings at exit (GH-21269)
* PyUnicode_InternInPlace() now ensures that interned strings are
ready.
* Add _PyUnicode_ClearInterned().
* Py_Finalize() now releases Unicode interned strings:
call _PyUnicode_ClearInterned().
Diffstat (limited to 'Python/pylifecycle.c')
-rw-r--r-- | Python/pylifecycle.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index cfbaf21960b..3ce2c41ef1f 100644 --- a/Python/pylifecycle.c +++ b/Python/pylifecycle.c @@ -1263,6 +1263,7 @@ finalize_interp_types(PyThreadState *tstate) _PyFrame_Fini(tstate); _PyAsyncGen_Fini(tstate); _PyContext_Fini(tstate); + _PyUnicode_ClearInterned(tstate); _PyDict_Fini(tstate); _PyList_Fini(tstate); |