python/dist/src/Modules itertoolsmodule.c, 1.34, 1.35
Update of /cvsroot/python/python/dist/src/Modules In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13289/Modules Modified Files: itertoolsmodule.c Log Message: SF patch #1020188: Use Py_CLEAR where necessary to avoid crashes (Contributed by Dima Dorfman) Index: itertoolsmodule.c =================================================================== RCS file: /cvsroot/python/python/dist/src/Modules/itertoolsmodule.c,v retrieving revision 1.34 retrieving revision 1.35 diff -u -d -r1.34 -r1.35 --- itertoolsmodule.c 15 Jul 2004 05:32:47 -0000 1.34 +++ itertoolsmodule.c 1 Sep 2004 07:02:43 -0000 1.35 @@ -250,8 +250,7 @@ r = gbo->currvalue; gbo->currvalue = NULL; - Py_DECREF(gbo->currkey); - gbo->currkey = NULL; + Py_CLEAR(gbo->currkey); return r; }
participants (1)
-
rhettingerīŧ users.sourceforge.net