Add a missing incref.
Backport candidate.
This commit is contained in:
parent
0e21be71da
commit
64e0814798
@ -651,6 +651,7 @@ initthread(void)
|
||||
Py_INCREF(&Locktype);
|
||||
PyDict_SetItemString(d, "LockType", (PyObject *)&Locktype);
|
||||
|
||||
Py_INCREF(&localtype);
|
||||
if (PyModule_AddObject(m, "_local", (PyObject *)&localtype) < 0)
|
||||
return;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user