diff options
author | Michael W. Hudson <mwh@python.net> | 2005-06-15 12:25:20 +0000 |
---|---|---|
committer | Michael W. Hudson <mwh@python.net> | 2005-06-15 12:25:20 +0000 |
commit | 8df729f279b6f49bd6429f1877e78f9147f7ec98 (patch) | |
tree | a6afec0a504f4d25f858de760b067f8e1dcf449a /Modules | |
parent | 1629f31b9ffc772e6fca6306159555e97a3019f6 (diff) | |
download | cpython-8df729f279b6f49bd6429f1877e78f9147f7ec98.tar.gz |
Add a missing incref.
Backport candidate.
Diffstat (limited to 'Modules')
-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; |