◐ Shell
clean mode source ↗

[3.15] gh-146527: Fix memory leak in _PyGC_Fini() (GH-150969) by miss-islington · Pull Request #150970 · python/cpython

Expand Up @@ -1876,6 +1876,8 @@ _PyGC_Fini(PyInterpreterState *interp) GCState *gcstate = &interp->gc; Py_CLEAR(gcstate->garbage); Py_CLEAR(gcstate->callbacks); PyMem_RawFree(gcstate->generation_stats); gcstate->generation_stats = NULL;
/* Prevent a subtle bug that affects sub-interpreters that use basic * single-phase init extensions (m_size == -1). Those extensions cause objects Expand Down