diff options
author | Michael W. Hudson <mwh@python.net> | 2005-06-15 12:25:20 (GMT) |
---|---|---|
committer | Michael W. Hudson <mwh@python.net> | 2005-06-15 12:25:20 (GMT) |
commit | 64e081479838451bac2ddce9468106b2ea0866c7 (patch) | |
tree | 5423a7fd62a38ad06f08f77d04374e0dc2989f22 /Modules/threadmodule.c | |
parent | 0e21be71da1fcbc3701044c26ecc989712393e79 (diff) | |
download | cpython-64e081479838451bac2ddce9468106b2ea0866c7.zip cpython-64e081479838451bac2ddce9468106b2ea0866c7.tar.gz cpython-64e081479838451bac2ddce9468106b2ea0866c7.tar.bz2 |
Add a missing incref.
Backport candidate.
Diffstat (limited to 'Modules/threadmodule.c')
-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 245c51d..9818e4e 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; |