summaryrefslogtreecommitdiff
path: root/Python/exceptions.c
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2003-08-14 20:26:44 +0000
committerWalter Dörwald <walter@livinglogic.de>2003-08-14 20:26:44 +0000
commit9ee6975fb6faf484bc8b35adbb671b3a22910729 (patch)
tree1a5ee3653177fe439f67dd3222da03eb9e4d74f4 /Python/exceptions.c
parentfa86fc53dc0a8cdff1e85394127a4531f58f3ba5 (diff)
downloadcpython-git-9ee6975fb6faf484bc8b35adbb671b3a22910729.tar.gz
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().
Diffstat (limited to 'Python/exceptions.c')
0 files changed, 0 insertions, 0 deletions