diff --git a/Objects/classobject.c b/Objects/classobject.c index 60214a44226..ed79da5031e 100644 --- a/Objects/classobject.c +++ b/Objects/classobject.c @@ -626,7 +626,7 @@ instance_getattr2(register PyInstanceObject *inst, PyObject *name) if (class != NULL) { if (PyFunction_Check(v)) { PyObject *w = PyMethod_New(v, (PyObject *)inst, - (PyObject *)class); + (PyObject *)class); Py_DECREF(v); v = w; }