diff options
author | Skip Montanaro <skip@pobox.com> | 2005-06-15 13:35:08 +0000 |
---|---|---|
committer | Skip Montanaro <skip@pobox.com> | 2005-06-15 13:35:08 +0000 |
commit | 368c5a1ae948de49edaf1a69c68c206d61ebc52d (patch) | |
tree | 7e4f23f4f711d519abfbcf5347a7a68d54c81b9b /Modules | |
parent | 9c7eec28295e96c26da6e60fa4930be7e38c4e8a (diff) | |
download | cpython-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.c | 1 |
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; |