Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 32c5d42

Browse files
author
Skip Montanaro
committed
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).
1 parent 2368b3c commit 32c5d42

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Modules/_csv.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1587,6 +1587,7 @@ init_csv(void)
15871587
}
15881588

15891589
/* Add the Dialect type */
1590+
Py_INCREF(&Dialect_Type);
15901591
if (PyModule_AddObject(module, "Dialect", (PyObject *)&Dialect_Type))
15911592
return;
15921593

0 commit comments

Comments
 (0)