From: Michael W. Hudson Date: Wed, 15 Jun 2005 12:25:20 +0000 (+0000) Subject: Add a missing incref. X-Git-Tag: v2.5a0~1694 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=64e081479838451bac2ddce9468106b2ea0866c7;p=thirdparty%2FPython%2Fcpython.git Add a missing incref. Backport candidate. --- diff --git a/Modules/threadmodule.c b/Modules/threadmodule.c index 245c51dfdf23..9818e4e49d21 100644 --- a/Modules/threadmodule.c +++ b/Modules/threadmodule.c @@ -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;