From: Victor Stinner Date: Thu, 9 Oct 2014 20:15:41 +0000 (+0200) Subject: Issue #22588: Fix typo in _testcapi.test_incref_decref_API() X-Git-Tag: v3.4.3rc1~528 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fc6a90a92e42717268b7e927c158ba341e579106;p=thirdparty%2FPython%2Fcpython.git Issue #22588: Fix typo in _testcapi.test_incref_decref_API() --- diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c index 538322db5614..6c17a4155e3c 100644 --- a/Modules/_testcapimodule.c +++ b/Modules/_testcapimodule.c @@ -2699,7 +2699,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;