From ec977c302847b6dc2d763a896091582708fc392a Mon Sep 17 00:00:00 2001
From: Benjamin Peterson <benjamin@python.org>
Date: Tue, 31 Jan 2017 23:31:02 -0800
Subject: [PATCH] gc types needs to be allocated as such (closes #29398)

---
 Modules/xxlimited.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
-- 
2.40.0