Message119238
To add to the mystery, the leak disappears if the key value is not
interned in PyDict_SetItemString:
Index: Objects/dictobject.c
===================================================================
--- Objects/dictobject.c (revision 70459)
+++ Objects/dictobject.c (working copy)
@@ -2088,7 +2088,6 @@
kv = PyUnicode_FromString(key);
if (kv == NULL)
return -1;
- PyUnicode_InternInPlace(&kv); /* XXX Should we really? */
err = PyDict_SetItem(v, kv, item);
Py_DECREF(kv);
return err; |
|
Date |
User |
Action |
Args |
2010-10-20 22:24:44 | skrah | set | recipients:
+ skrah, amaury.forgeotdarc, mark.dickinson, vstinner |
2010-10-20 22:24:44 | skrah | set | messageid: <1287613484.67.0.0667865614901.issue10156@psf.upfronthosting.co.za> |
2010-10-20 22:24:43 | skrah | link | issue10156 messages |
2010-10-20 22:24:43 | skrah | create | |
|