[Python-checkins] r52028 - in python/branches/release24-maint: Misc/NEWS Modules/threadmodule.c

andrew.kuchling python-checkins at python.org
Thu Sep 28 19:05:19 CEST 2006


Author: andrew.kuchling
Date: Thu Sep 28 19:05:18 2006
New Revision: 52028

Modified:
   python/branches/release24-maint/Misc/NEWS
   python/branches/release24-maint/Modules/threadmodule.c
Log:
[Backport rev. 39012 by mwh]

Add a missing incref.


Modified: python/branches/release24-maint/Misc/NEWS
==============================================================================
--- python/branches/release24-maint/Misc/NEWS	(original)
+++ python/branches/release24-maint/Misc/NEWS	Thu Sep 28 19:05:18 2006
@@ -54,6 +54,8 @@
 Extension Modules
 -----------------
 
+- threadmodule: add a missing incref.
+
 - Bug #1551427: fix a wrong NULL pointer check in the win32 version
   of os.urandom().
 

Modified: python/branches/release24-maint/Modules/threadmodule.c
==============================================================================
--- python/branches/release24-maint/Modules/threadmodule.c	(original)
+++ python/branches/release24-maint/Modules/threadmodule.c	Thu Sep 28 19:05:18 2006
@@ -661,6 +661,7 @@
 	Py_INCREF(&Locktype);
 	PyDict_SetItemString(d, "LockType", (PyObject *)&Locktype);
 
+	Py_INCREF(&localtype);
         if (PyModule_AddObject(m, "_local", (PyObject *)&localtype) < 0)
         	return;
 


More information about the Python-checkins mailing list