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

Skip to content

Commit 0e2f9b2

Browse files
committed
Fix refcounting bug.
1 parent 5bd7c02 commit 0e2f9b2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Modules/unicodedata.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1186,6 +1186,7 @@ initunicodedata(void)
11861186
return;
11871187

11881188
PyModule_AddStringConstant(m, "unidata_version", UNIDATA_VERSION);
1189+
Py_INCREF(&UCD_Type);
11891190
PyModule_AddObject(m, "UCD", (PyObject*)&UCD_Type);
11901191

11911192
/* Previous versions */

0 commit comments

Comments
 (0)