diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c index 643cbde317b..245d4f63168 100644 --- a/Modules/_testcapimodule.c +++ b/Modules/_testcapimodule.c @@ -2715,7 +2715,7 @@ static PyObject * test_incref_decref_API(PyObject *ob) { PyObject *obj = PyLong_FromLong(0); - Py_IncRef(ob); + Py_IncRef(obj); Py_DecRef(obj); Py_DecRef(obj); Py_RETURN_NONE;