summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2007-02-06 21:30:59 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2007-02-06 21:30:59 (GMT)
commit21298cfea6eedfe4318cd26c5afb12b766070851 (patch)
tree3e9c4cd7a3f988a12a4adb100e6ab08522ead674 /Objects
parent14b6d92e212c5c6113f8c9b8d6a0645381379730 (diff)
downloadcpython-21298cfea6eedfe4318cd26c5afb12b766070851.zip
cpython-21298cfea6eedfe4318cd26c5afb12b766070851.tar.gz
cpython-21298cfea6eedfe4318cd26c5afb12b766070851.tar.bz2
Remove bogus INCREF of ziptuple: it is a
freshly-allocated tuple object.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/iterobject.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/Objects/iterobject.c b/Objects/iterobject.c
index 3fe861b..6c12b74 100644
--- a/Objects/iterobject.c
+++ b/Objects/iterobject.c
@@ -302,7 +302,6 @@ _PyZip_CreateIter(PyObject* args)
zipiter->result = (PyTupleObject*) result;
zipiter->resultsize = tuplesize;
- Py_INCREF(ziptuple);
zipiter->it_tuple = (PyTupleObject *) ziptuple;
_PyObject_GC_TRACK(zipiter);
return (PyObject *)zipiter;