diff options
-rw-r--r-- | Modules/threadmodule.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |