summaryrefslogtreecommitdiffstats
path: root/Objects/object.c
diff options
context:
space:
mode:
authorKumar Aditya <59607654+kumaraditya303@users.noreply.github.com>2022-05-14 14:24:20 (GMT)
committerGitHub <noreply@github.com>2022-05-14 14:24:20 (GMT)
commitd923fdf54bc97baece879179ba4971f632b9722b (patch)
tree946ce183a3db192a74c491baa24a41ace2f5b59a /Objects/object.c
parent2e8f721c0f275d9d7c018b4a2a66f053cf34bb36 (diff)
downloadcpython-d923fdf54bc97baece879179ba4971f632b9722b.zip
cpython-d923fdf54bc97baece879179ba4971f632b9722b.tar.gz
cpython-d923fdf54bc97baece879179ba4971f632b9722b.tar.bz2
GH-92804: Fix memory leak in memoryview iterator (gh-92805)
Diffstat (limited to 'Objects/object.c')
-rw-r--r--Objects/object.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Objects/object.c b/Objects/object.c
index 8339ab3..c9bb60e 100644
--- a/Objects/object.c
+++ b/Objects/object.c
@@ -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,