Remove bogus INCREF of ziptuple: it is a

freshly-allocated tuple object.
This commit is contained in:
Martin v. Löwis 2007-02-06 21:30:59 +00:00
parent 14b6d92e21
commit 21298cfea6

View File

@ -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;