[Python-checkins] cpython (merge 3.5 -> 3.6): merge 3.5 (#29398)

benjamin.peterson python-checkins at python.org
Wed Feb 1 02:31:29 EST 2017


https://hg.python.org/cpython/rev/b0463c5073fc
changeset:   106357:b0463c5073fc
branch:      3.6
parent:      106352:ccbd5c11c7fd
parent:      106356:167beb21b527
user:        Benjamin Peterson <benjamin at python.org>
date:        Tue Jan 31 23:31:10 2017 -0800
summary:
  merge 3.5 (#29398)

files:
  Modules/xxlimited.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Modules/xxlimited.c b/Modules/xxlimited.c
--- a/Modules/xxlimited.c
+++ b/Modules/xxlimited.c
@@ -31,7 +31,7 @@
 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;

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list