summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2005-06-15 13:35:08 +0000
committerSkip Montanaro <skip@pobox.com>2005-06-15 13:35:08 +0000
commit368c5a1ae948de49edaf1a69c68c206d61ebc52d (patch)
tree7e4f23f4f711d519abfbcf5347a7a68d54c81b9b /Modules
parent9c7eec28295e96c26da6e60fa4930be7e38c4e8a (diff)
downloadcpython-368c5a1ae948de49edaf1a69c68c206d61ebc52d.tar.gz
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).
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_csv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_csv.c b/Modules/_csv.c
index 79870c0490..da5ae0d238 100644
--- a/Modules/_csv.c
+++ b/Modules/_csv.c
@@ -1587,6 +1587,7 @@ init_csv(void)
}
/* Add the Dialect type */
+ Py_INCREF(&Dialect_Type);
if (PyModule_AddObject(module, "Dialect", (PyObject *)&Dialect_Type))
return;