diff options
author | Walter Dörwald <walter@livinglogic.de> | 2003-08-14 20:25:29 (GMT) |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2003-08-14 20:25:29 (GMT) |
commit | e5402fb340c5eea54858def3c5c294552a5f9faa (patch) | |
tree | 9e1c7405ecf74436e4442e39d08d9d5160b47174 /Python | |
parent | fb857893a2a9885bb872f8729d1a4dfc00762134 (diff) | |
download | cpython-e5402fb340c5eea54858def3c5c294552a5f9faa.zip cpython-e5402fb340c5eea54858def3c5c294552a5f9faa.tar.gz cpython-e5402fb340c5eea54858def3c5c294552a5f9faa.tar.bz2 |
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')
0 files changed, 0 insertions, 0 deletions