summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2018-11-28 09:26:20 (GMT)
committerGitHub <noreply@github.com>2018-11-28 09:26:20 (GMT)
commitbde9d6bbb46ca59bcee5d5060adaa33c3ffee3a6 (patch)
treeef525570f785225ab3da54b867b2ea4cb137fb40 /Misc
parenta22df4896f6b83c8741203118790ae281716bca5 (diff)
downloadcpython-bde9d6bbb46ca59bcee5d5060adaa33c3ffee3a6.zip
cpython-bde9d6bbb46ca59bcee5d5060adaa33c3ffee3a6.tar.gz
cpython-bde9d6bbb46ca59bcee5d5060adaa33c3ffee3a6.tar.bz2
bpo-34523, bpo-35322: Fix unicode_encode_locale() (GH-10759)
Fix memory leak in PyUnicode_EncodeLocale() and PyUnicode_EncodeFSDefault() on error handling. Changes: * Fix unicode_encode_locale() error handling * Fix test_codecs.LocaleCodecTest
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/C API/2018-11-28-03-20-36.bpo-35322.Qcqsag.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/C API/2018-11-28-03-20-36.bpo-35322.Qcqsag.rst b/Misc/NEWS.d/next/C API/2018-11-28-03-20-36.bpo-35322.Qcqsag.rst
new file mode 100644
index 0000000..f5b4796
--- /dev/null
+++ b/Misc/NEWS.d/next/C API/2018-11-28-03-20-36.bpo-35322.Qcqsag.rst
@@ -0,0 +1,2 @@
+Fix memory leak in :c:func:`PyUnicode_EncodeLocale` and
+:c:func:`PyUnicode_EncodeFSDefault` on error handling.