Staging
v0.8.1
https://github.com/python/cpython
Revision 9ee6975fb6faf484bc8b35adbb671b3a22910729 authored by Walter Dörwald on 14 August 2003, 20:26:44 UTC, committed by Walter Dörwald on 14 August 2003, 20:26:44 UTC
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().
1 parent fa86fc5
History
Tip revision: 9ee6975fb6faf484bc8b35adbb671b3a22910729 authored by Walter Dörwald on 14 August 2003, 20:26:44 UTC
Backport checkins:
Tip revision: 9ee6975
File Mode Size
Demo
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Python
RISCOS
Tools
.cvsignore -rw-r--r-- 109 bytes
.hgtags -rw-r--r-- 2.2 KB
LICENSE -rw-r--r-- 12.6 KB
Makefile.pre.in -rw-r--r-- 31.0 KB
README -rw-r--r-- 47.8 KB
configure -rwxr-xr-x 514.5 KB
configure.in -rw-r--r-- 80.8 KB
install-sh -rwxr-xr-x 7.0 KB
pyconfig.h.in -rw-r--r-- 24.4 KB
setup.py -rw-r--r-- 49.9 KB

README

back to top