summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorMichael W. Hudson <mwh@python.net>2005-06-15 12:25:20 (GMT)
committerMichael W. Hudson <mwh@python.net>2005-06-15 12:25:20 (GMT)
commit64e081479838451bac2ddce9468106b2ea0866c7 (patch)
tree5423a7fd62a38ad06f08f77d04374e0dc2989f22 /Modules
parent0e21be71da1fcbc3701044c26ecc989712393e79 (diff)
downloadcpython-64e081479838451bac2ddce9468106b2ea0866c7.zip
cpython-64e081479838451bac2ddce9468106b2ea0866c7.tar.gz
cpython-64e081479838451bac2ddce9468106b2ea0866c7.tar.bz2
Add a missing incref.
Backport candidate.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/threadmodule.c1
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;