commit | ba6b430bd0732ee6ab731b3578d139827d24de80 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Mon May 17 09:33:42 2010 +0000 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Mon May 17 09:33:42 2010 +0000 |
tree | e7b5e00b7cb2f60054131e4acadf6a8eeab3d431 | |
parent | e9fb319e688d2d76ab4dbf8b3165ce9d1e24e8fc [diff] [blame] |
Fix refleak in internal_print() introduced by myself in r81251 _PyUnicode_AsDefaultEncodedString() uses a magical PyUnicode attribute to automatically destroy PyUnicode_EncodeUTF8() result when the unicode string is destroyed.
diff --git a/Objects/object.c b/Objects/object.c index 1f4e3dd..7907a8e 100644 --- a/Objects/object.c +++ b/Objects/object.c
@@ -311,6 +311,7 @@ else { fwrite(PyBytes_AS_STRING(t), 1, PyBytes_GET_SIZE(t), fp); + Py_DECREF(t); } } else {