Kaydet (Commit) 21298cfe authored tarafından Martin v. Löwis's avatar Martin v. Löwis

Remove bogus INCREF of ziptuple: it is a

freshly-allocated tuple object.
üst 14b6d92e
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment