You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
static PyTypeObject Py_GenericAliasIterType = {...} of Objects/genericaliasobject.c is not cleared at exit. It's a variant of https://bugs.python.org/issue46417
Either the type should be accessible in Objects/object.c for _PyTypes_FiniTypes() (remove "static", add "_" to hide the symbol). Or a _PyGenericAlias_Fini() function should be added in called in finalize_interp_types() in the main interpreter.
Python does not finalizes iterators of some types at exit leading to memory leak.
Reproducer:
Leak:
See also #90575
The text was updated successfully, but these errors were encountered: