mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
GH-92804: Fix memory leak in memoryview iterator (gh-92805)
This commit is contained in:
parent
2e8f721c0f
commit
d923fdf54b
3 changed files with 6 additions and 3 deletions
|
|
@ -1845,6 +1845,7 @@ _PyTypes_InitState(PyInterpreterState *interp)
|
|||
extern PyTypeObject PyHKEY_Type;
|
||||
#endif
|
||||
extern PyTypeObject _Py_GenericAliasIterType;
|
||||
extern PyTypeObject _PyMemoryIter_Type;
|
||||
|
||||
static PyTypeObject* static_types[] = {
|
||||
// The two most important base types: must be initialized first and
|
||||
|
|
@ -1944,6 +1945,7 @@ static PyTypeObject* static_types[] = {
|
|||
&_PyHamt_Type,
|
||||
&_PyInterpreterID_Type,
|
||||
&_PyManagedBuffer_Type,
|
||||
&_PyMemoryIter_Type,
|
||||
&_PyMethodWrapper_Type,
|
||||
&_PyNamespace_Type,
|
||||
&_PyNone_Type,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue