[Python-checkins] python/dist/src/Modules _csv.c,1.37,1.38
montanaro@users.sourceforge.net
montanaro at users.sourceforge.net
Wed Jun 15 15:35:10 CEST 2005
Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7496
Modified Files:
_csv.c
Log Message:
Michael Hudson pointed out that the Dialect_Type object isn't INCREF'd. Why
this worked is a bit mystical. Perhaps it never gets freed because the
object just happens never to be DECREF'd (but that seems unlikely).
Index: _csv.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/_csv.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- _csv.c 15 Jun 2005 01:33:30 -0000 1.37
+++ _csv.c 15 Jun 2005 13:35:08 -0000 1.38
@@ -1587,6 +1587,7 @@
}
/* Add the Dialect type */
+ Py_INCREF(&Dialect_Type);
if (PyModule_AddObject(module, "Dialect", (PyObject *)&Dialect_Type))
return;
More information about the Python-checkins
mailing list