Commit 32c5d424 authored by Skip Montanaro's avatar Skip Montanaro

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).
parent 2368b3c4
...@@ -1587,6 +1587,7 @@ init_csv(void) ...@@ -1587,6 +1587,7 @@ init_csv(void)
} }
/* Add the Dialect type */ /* Add the Dialect type */
Py_INCREF(&Dialect_Type);
if (PyModule_AddObject(module, "Dialect", (PyObject *)&Dialect_Type)) if (PyModule_AddObject(module, "Dialect", (PyObject *)&Dialect_Type))
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment