diff options
| author | Donghee Na <donghee.na@python.org> | 2024-01-09 23:04:41 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-09 23:04:41 (GMT) |
| commit | 57bdc6c30d2665c2760ff5a88487e57c8b3c397a (patch) | |
| tree | de5a4efb2a25eac14672c6a538ca6e50ae7ed582 /Python/pylifecycle.c | |
| parent | cdca0ce0ad47604b7007229415817a7a152f7f9a (diff) | |
| download | cpython-57bdc6c30d2665c2760ff5a88487e57c8b3c397a.zip cpython-57bdc6c30d2665c2760ff5a88487e57c8b3c397a.tar.gz cpython-57bdc6c30d2665c2760ff5a88487e57c8b3c397a.tar.bz2 | |
gh-111968: Introduce _PyFreeListState and _PyFreeListState_GET API (gh-113584)
Diffstat (limited to 'Python/pylifecycle.c')
| -rw-r--r-- | Python/pylifecycle.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index 1d8af26..bd6475f 100644 --- a/Python/pylifecycle.c +++ b/Python/pylifecycle.c @@ -1752,13 +1752,16 @@ finalize_interp_types(PyInterpreterState *interp) _PyUnicode_ClearInterned(interp); _PyDict_Fini(interp); - _PyList_Fini(interp); _PyTuple_Fini(interp); _PySlice_Fini(interp); _PyUnicode_Fini(interp); _PyFloat_Fini(interp); + + _PyFreeListState *state = _PyFreeListState_GET(); + _PyList_Fini(state); + #ifdef Py_DEBUG _PyStaticObjects_CheckRefcnt(interp); #endif |
