From 64e081479838451bac2ddce9468106b2ea0866c7 Mon Sep 17 00:00:00 2001 From: "Michael W. Hudson" Date: Wed, 15 Jun 2005 12:25:20 +0000 Subject: [PATCH] Add a missing incref. Backport candidate. --- Modules/threadmodule.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Modules/threadmodule.c b/Modules/threadmodule.c index 245c51dfdf..9818e4e49d 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; -- 2.40.0