Kaydet (Commit) 8823accd authored tarafından Guido van Rossum's avatar Guido van Rossum

Marc-Andre Lemburg:

Fixes a memory leak found by Fredrik Lundh.
üst ec5b7769
......@@ -553,8 +553,10 @@ AsObj(value)
PyObject* utf8 = PyUnicode_AsUTF8String (value);
if (!utf8)
return 0;
return Tcl_NewStringObj (PyString_AS_STRING (utf8),
result = Tcl_NewStringObj (PyString_AS_STRING (utf8),
PyString_GET_SIZE (utf8));
Py_DECREF(utf8);
return result;
}
else {
PyObject *v = PyObject_Str(value);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment