Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ec977c3

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/xxlimited.c

+1-1
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)