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).
This commit is contained in:
Skip Montanaro 2005-06-15 13:35:08 +00:00
parent 2368b3c41b
commit 32c5d424fd
1 changed files with 1 additions and 0 deletions

View File

@ -1587,6 +1587,7 @@ init_csv(void)
}
/* Add the Dialect type */
Py_INCREF(&Dialect_Type);
if (PyModule_AddObject(module, "Dialect", (PyObject *)&Dialect_Type))
return;