Mercurial > cpython-lru_cache-weakref
diff Modules/threadmodule.c @ 35085:2015d16d2647 legacy-trunk
Add a missing incref.
Backport candidate.
| author | Michael W. Hudson <mwh@python.net> |
|---|---|
| date | Wed, 15 Jun 2005 12:25:20 +0000 |
| parents | 25a0e1faa8a5 |
| children | c6b7fadf0ada |
line wrap: on
line diff
--- a/Modules/threadmodule.c Wed Jun 15 11:46:27 2005 +0000 +++ b/Modules/threadmodule.c Wed Jun 15 12:25:20 2005 +0000 @@ -651,6 +651,7 @@ Py_INCREF(&Locktype); PyDict_SetItemString(d, "LockType", (PyObject *)&Locktype); + Py_INCREF(&localtype); if (PyModule_AddObject(m, "_local", (PyObject *)&localtype) < 0) return;
