This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pjenvey
Recipients amaury.forgeotdarc, bbangert, pjenvey
Date 2009-09-25.17:23:40
SpamBayes Score 0.0010317093
Marked as misclassified No
Message-id <1253899422.15.0.450481545027.issue6990@psf.upfronthosting.co.za>
In-reply-to
Content
Great, though I think it still needs to deallocated:

Index: Modules/threadmodule.c
===================================================================
--- Modules/threadmodule.c	(revision 75050)
+++ Modules/threadmodule.c	(working copy)
@@ -244,7 +244,6 @@
 static int
 local_clear(localobject *self)
 {
-	Py_CLEAR(self->key);
 	Py_CLEAR(self->args);
 	Py_CLEAR(self->kw);
 	Py_CLEAR(self->dict);
@@ -266,6 +265,7 @@
 				PyDict_DelItem(tstate->dict, self->key);
 	}
 
+	Py_XDECREF(self->key);
 	local_clear(self);
 	Py_TYPE(self)->tp_free((PyObject*)self);
 }
History
Date User Action Args
2009-09-25 17:23:42pjenveysetrecipients: + pjenvey, amaury.forgeotdarc, bbangert
2009-09-25 17:23:42pjenveysetmessageid: <1253899422.15.0.450481545027.issue6990@psf.upfronthosting.co.za>
2009-09-25 17:23:40pjenveylinkissue6990 messages
2009-09-25 17:23:40pjenveycreate