Commit c83356ca authored by Hai Shi's avatar Hai Shi Committed by Benjamin Peterson

closes bpo-37300: Remove unnecessary Py_XINCREF in classobject.c. (GH-14120)

parent 5600b5e1
......@@ -110,7 +110,7 @@ PyMethod_New(PyObject *func, PyObject *self)
im->im_weakreflist = NULL;
Py_INCREF(func);
im->im_func = func;
Py_XINCREF(self);
Py_INCREF(self);
im->im_self = self;
im->vectorcall = method_vectorcall;
_PyObject_GC_TRACK(im);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment