Skip to content

Commit

Permalink
gc types needs to be allocated as such (closes python#29398)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminp committed Feb 1, 2017
1 parent 34e7e2e commit ec977c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/xxlimited.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ static XxoObject *
newXxoObject(PyObject *arg)
{
XxoObject *self;
self = PyObject_New(XxoObject, (PyTypeObject*)Xxo_Type);
self = PyObject_GC_New(XxoObject, (PyTypeObject*)Xxo_Type);
if (self == NULL)
return NULL;
self->x_attr = NULL;
Expand Down

0 comments on commit ec977c3

Please sign in to comment.