Add a missing incref.

Backport candidate.
This commit is contained in:
Michael W. Hudson 2005-06-15 12:25:20 +00:00
parent 0e21be71da
commit 64e0814798
1 changed files with 1 additions and 0 deletions

View File

@ -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;