diff --git a/Objects/classobject.c b/Objects/classobject.c index 7f76d6ed5ab..5e987ff6b8b 100644 --- a/Objects/classobject.c +++ b/Objects/classobject.c @@ -1289,8 +1289,6 @@ instance_coerce(PyObject **pv, PyObject **pw) if (coercefunc == NULL) { /* No __coerce__ method */ PyErr_Clear(); - Py_INCREF(v); - Py_INCREF(w); return 1; } /* Has __coerce__ method: call it */