mirror of
https://github.com/python/cpython.git
synced 2024-11-24 18:34:43 +08:00
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:
parent
2368b3c41b
commit
32c5d424fd
@ -1587,6 +1587,7 @@ init_csv(void)
|
||||
}
|
||||
|
||||
/* Add the Dialect type */
|
||||
Py_INCREF(&Dialect_Type);
|
||||
if (PyModule_AddObject(module, "Dialect", (PyObject *)&Dialect_Type))
|
||||
return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user