mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Add a missing incref.
Backport candidate.
This commit is contained in:
parent
0e21be71da
commit
64e0814798
1 changed files with 1 additions and 0 deletions
|
|
@ -651,6 +651,7 @@ initthread(void)
|
||||||
Py_INCREF(&Locktype);
|
Py_INCREF(&Locktype);
|
||||||
PyDict_SetItemString(d, "LockType", (PyObject *)&Locktype);
|
PyDict_SetItemString(d, "LockType", (PyObject *)&Locktype);
|
||||||
|
|
||||||
|
Py_INCREF(&localtype);
|
||||||
if (PyModule_AddObject(m, "_local", (PyObject *)&localtype) < 0)
|
if (PyModule_AddObject(m, "_local", (PyObject *)&localtype) < 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue