Marc-Andre Lemburg:
Fixed a memory leak found by Fredrik Lundh. Instead of PyUnicode_AsUTF8String() we now use _PyUnicode_AsUTF8String() which returns the string object without incremented refcount (and assures that the so obtained object remains alive until the Unicode object is garbage collected).
G
Guido van Rossum committed
700c6ff1fb066ef3198aac99772fe081db3bf6be
Parent: 38c28e3