diff options
author | Skip Montanaro <skip@pobox.com> | 2005-06-15 13:35:08 (GMT) |
---|---|---|
committer | Skip Montanaro <skip@pobox.com> | 2005-06-15 13:35:08 (GMT) |
commit | 32c5d424fd31a283651fddbb1be10d33184bbf5d (patch) | |
tree | a1db795e4a1478594ecd7a3843f37cd595a2d957 /Modules/_csv.c | |
parent | 2368b3c41b96d1ceb5d39c9cca0765b12c84e00a (diff) | |
download | cpython-32c5d424fd31a283651fddbb1be10d33184bbf5d.zip cpython-32c5d424fd31a283651fddbb1be10d33184bbf5d.tar.gz cpython-32c5d424fd31a283651fddbb1be10d33184bbf5d.tar.bz2 |
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/_csv.c')
-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 79870c0..da5ae0d 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; |