summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-09-05 20:48:47 (GMT)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-09-05 20:48:47 (GMT)
commitf04811140339507ff461d5a79be4d088f4f06169 (patch)
tree657a6d3b3878b33146080b34dbd4b6c482e74a20 /Misc
parentf9b99a0baa8eea460eaa8b7852f58b4cbb571fa5 (diff)
downloadcpython-f04811140339507ff461d5a79be4d088f4f06169.zip
cpython-f04811140339507ff461d5a79be4d088f4f06169.tar.gz
cpython-f04811140339507ff461d5a79be4d088f4f06169.tar.bz2
#3660: Correct a reference leak in PyUnicode_AsEncodedString when
the encoder does not return a bytes object. Now test_unicode passes without leaking. Reviewer: Antoine Pitrou.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS7
1 files changed, 5 insertions, 2 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 1bb4f6f..f388f11 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,10 +12,13 @@ What's New in Python 3.0 release candidate 1
Core and Builtins
-----------------
-- Issue 3774: Added a few more checks in PyTokenizer_FindEncoding to handle
+- Issue #3660: Corrected a reference leak in str.encode() when the encoder
+ does not return a bytes object.
+
+- Issue #3774: Added a few more checks in PyTokenizer_FindEncoding to handle
error conditions.
-- Issue 3594: Fix Parser/tokenizer.c:fp_setreadl() to open the file being
+- Issue #3594: Fix Parser/tokenizer.c:fp_setreadl() to open the file being
tokenized by either a file path or file pointer for the benefit of
PyTokenizer_FindEncoding().