Skip to content

Commit

Permalink
closes bpo-37300: Remove unnecessary Py_XINCREF in classobject.c. (py…
Browse files Browse the repository at this point in the history
  • Loading branch information
shihai1991 authored and benjaminp committed Jun 16, 2019
1 parent 5600b5e commit c83356c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove an unnecssary Py_XINCREF in classobject.c.
2 changes: 1 addition & 1 deletion Objects/classobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c83356c

Please sign in to comment.