summaryrefslogtreecommitdiff
path: root/Modules/xxlimited.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2017-01-31 23:31:02 -0800
committerBenjamin Peterson <benjamin@python.org>2017-01-31 23:31:02 -0800
commit56e6c32fde92d2dda2d9fbbab06337abfefc52a7 (patch)
treea958519dd68d7b234d15af80ab5bffd1c021ea88 /Modules/xxlimited.c
parentd273026aa0ab78e7eafec5bdfb5233afdb2c97c0 (diff)
downloadcpython-56e6c32fde92d2dda2d9fbbab06337abfefc52a7.tar.gz
gc types needs to be allocated as such (closes #29398)
Diffstat (limited to 'Modules/xxlimited.c')
-rw-r--r--Modules/xxlimited.c2
1 files changed, 1 insertions, 1 deletions
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;