From: Martin v. Löwis Date: Tue, 6 Feb 2007 21:30:59 +0000 (+0000) Subject: Remove bogus INCREF of ziptuple: it is a X-Git-Tag: v3.0a1~1253 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=21298cfea6eedfe4318cd26c5afb12b766070851;p=thirdparty%2FPython%2Fcpython.git Remove bogus INCREF of ziptuple: it is a freshly-allocated tuple object. --- diff --git a/Objects/iterobject.c b/Objects/iterobject.c index 3fe861b6ef28..6c12b749a5dd 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;