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

This commit is contained in:
Hai Shi 2019-06-17 04:19:19 +08:00 committed by Benjamin Peterson
parent 5600b5e1b2
commit c83356cae2
2 changed files with 2 additions and 1 deletions

View file

@ -0,0 +1 @@
Remove an unnecssary Py_XINCREF in classobject.c.

View file

@ -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);