From: Benjamin Peterson Date: Wed, 1 Feb 2017 07:31:02 +0000 (-0800) Subject: gc types needs to be allocated as such (closes #29398) X-Git-Tag: v3.6.1rc1~126^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ec977c302847b6dc2d763a896091582708fc392a;p=python gc types needs to be allocated as such (closes #29398) --- diff --git a/Modules/xxlimited.c b/Modules/xxlimited.c index 40c176063d..ea620fdf2e 100644 --- a/Modules/xxlimited.c +++ b/Modules/xxlimited.c @@ -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;