]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Backport checkins:
authorWalter Dörwald <walter@livinglogic.de>
Thu, 14 Aug 2003 20:26:44 +0000 (20:26 +0000)
committerWalter Dörwald <walter@livinglogic.de>
Thu, 14 Aug 2003 20:26:44 +0000 (20:26 +0000)
commit9ee6975fb6faf484bc8b35adbb671b3a22910729
tree1a5ee3653177fe439f67dd3222da03eb9e4d74f4
parentfa86fc53dc0a8cdff1e85394127a4531f58f3ba5
Backport checkins:
Fix refcount leak in PyUnicode_EncodeCharmap(). The bug surfaces
when an encoding error occurs and the callback name is unknown,
i.e. when the callback has to be called. The problem was that
the fact that the callback has already been looked up was only
recorded in a local variable in charmap_encoding_error(), because
charmap_encoding_error() got it's own copy of the errorHandler
pointer instead of a pointer to the pointer in
PyUnicode_EncodeCharmap().
Objects/unicodeobject.c