mirror of
https://github.com/python/cpython.git
synced 2024-11-25 10:54:51 +08:00
Remove bogus INCREF of ziptuple: it is a
freshly-allocated tuple object.
This commit is contained in:
parent
14b6d92e21
commit
21298cfea6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user