diff Modules/_csv.c @ 35087:17ccac695413 legacy-trunk

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).
author Skip Montanaro <skip@pobox.com>
date Wed, 15 Jun 2005 13:35:08 +0000
parents 2b5186b595b1
children 9541369b0dca
line wrap: on
line diff
--- a/Modules/_csv.c	Wed Jun 15 12:48:40 2005 +0000
+++ b/Modules/_csv.c	Wed Jun 15 13:35:08 2005 +0000
@@ -1587,6 +1587,7 @@
 	}
 
         /* Add the Dialect type */
+	Py_INCREF(&Dialect_Type);
         if (PyModule_AddObject(module, "Dialect", (PyObject *)&Dialect_Type))
                 return;