homepage

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 skrah
Recipients amaury.forgeotdarc, mark.dickinson, skrah, vstinner
Date 2010年10月20日.22:24:43
SpamBayes Score 6.669928e-07
Marked as misclassified No
Message-id <1287613484.67.0.0667865614901.issue10156@psf.upfronthosting.co.za>
In-reply-to
Content
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;
History
Date User Action Args
2010年10月20日 22:24:44skrahsetrecipients: + skrah, amaury.forgeotdarc, mark.dickinson, vstinner
2010年10月20日 22:24:44skrahsetmessageid: <1287613484.67.0.0667865614901.issue10156@psf.upfronthosting.co.za>
2010年10月20日 22:24:43skrahlinkissue10156 messages
2010年10月20日 22:24:43skrahcreate

AltStyle によって変換されたページ (->オリジナル) /