]> granicus.if.org Git - python/commit
#3660: Correct a reference leak in PyUnicode_AsEncodedString when
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>
Fri, 5 Sep 2008 20:48:47 +0000 (20:48 +0000)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>
Fri, 5 Sep 2008 20:48:47 +0000 (20:48 +0000)
commitf04811140339507ff461d5a79be4d088f4f06169
tree657a6d3b3878b33146080b34dbd4b6c482e74a20
parentf9b99a0baa8eea460eaa8b7852f58b4cbb571fa5
#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.
Misc/NEWS
Objects/unicodeobject.c