]> granicus.if.org Git - python/commitdiff
Add a missing incref.
authorMichael W. Hudson <mwh@python.net>
Wed, 15 Jun 2005 12:25:20 +0000 (12:25 +0000)
committerMichael W. Hudson <mwh@python.net>
Wed, 15 Jun 2005 12:25:20 +0000 (12:25 +0000)
Backport candidate.

Modules/threadmodule.c

index 245c51dfdf236de2a8d429d501c987602a0dcdc8..9818e4e49d219135e393c830055097635c631a6b 100644 (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;