Stefan Krah <stefan-use...@bytereef.org> added the comment:

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;

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10156>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to