Kaydet (Commit) 64e08147 authored tarafından Michael W. Hudson's avatar Michael W. Hudson

Add a missing incref.

Backport candidate.
üst 0e21be71
...@@ -651,6 +651,7 @@ initthread(void) ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment