diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2007-02-06 21:30:59 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2007-02-06 21:30:59 (GMT) |
commit | 21298cfea6eedfe4318cd26c5afb12b766070851 (patch) | |
tree | 3e9c4cd7a3f988a12a4adb100e6ab08522ead674 | |
parent | 14b6d92e212c5c6113f8c9b8d6a0645381379730 (diff) | |
download | cpython-21298cfea6eedfe4318cd26c5afb12b766070851.zip cpython-21298cfea6eedfe4318cd26c5afb12b766070851.tar.gz cpython-21298cfea6eedfe4318cd26c5afb12b766070851.tar.bz2 |
Remove bogus INCREF of ziptuple: it is a
freshly-allocated tuple object.
-rw-r--r-- | Objects/iterobject.c | 1 |
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; |