summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2013-07-26 13:26:18 (GMT)
committerChristian Heimes <christian@cheimes.de>2013-07-26 13:26:18 (GMT)
commitec2309b03d044a80bdaab4b5b3557fdf82177122 (patch)
treec9451544630e7ea69bb8ca7e568e7038710f804d
parent3205e74d880a7cacd52ff032325de28acdec888d (diff)
downloadcpython-ec2309b03d044a80bdaab4b5b3557fdf82177122.zip
cpython-ec2309b03d044a80bdaab4b5b3557fdf82177122.tar.gz
cpython-ec2309b03d044a80bdaab4b5b3557fdf82177122.tar.bz2
remove surplus and wrong Py_DECREF() introduced in 33891989c9cf
-rw-r--r--Modules/_testcapimodule.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c
index 4fd2d9f..c3563fb 100644
--- a/Modules/_testcapimodule.c
+++ b/Modules/_testcapimodule.c
@@ -121,7 +121,6 @@ test_dict_inner(int count)
for (i = 0; i < count; i++) {
v = PyLong_FromLong(i);
if (v == NULL) {
- Py_DECREF(v);
return -1;
}
if (PyDict_SetItem(dict, v, v) < 0) {