Sitelet https://github.com/python/cpython/commit/ec977c302847b6dc2d763a896091582708fc392a
Skip to content

Commit ec977c3

Browse files
committed
gc types needs to be allocated as such (closes #29398)
1 parent 34e7e2e commit ec977c3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Modules/xxlimited.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ static XxoObject *
3131
newXxoObject(PyObject *arg)
3232
{
3333
XxoObject *self;
34-
self = PyObject_New(XxoObject, (PyTypeObject*)Xxo_Type);
34+
self = PyObject_GC_New(XxoObject, (PyTypeObject*)Xxo_Type);
3535
if (self == NULL)
3636
return NULL;
3737
self->x_attr = NULL;

0 commit comments

Comments
 (0)