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 | 64e081479838451bac2ddce9468106b2ea0866c7 (patch) | |
| tree | 5423a7fd62a38ad06f08f77d04374e0dc2989f22 | |
| parent | 0e21be71da1fcbc3701044c26ecc989712393e79 (diff) | |
| download | cpython-git-64e081479838451bac2ddce9468106b2ea0866c7.tar.gz | |
Add a missing incref.
Backport candidate.
| -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; |
