diff options
author | Guido van Rossum <guido@python.org> | 2001-12-06 20:03:56 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-12-06 20:03:56 (GMT) |
commit | 604ddf80d891f666c677d23b83c3c9f8125ee2b5 (patch) | |
tree | a5386610833f3ec3e72c9fe6358f5d5e20cad680 /Objects/stringobject.c | |
parent | a631f580ea4bb9670263f701f41589ab7d591d6f (diff) | |
download | cpython-604ddf80d891f666c677d23b83c3c9f8125ee2b5.zip cpython-604ddf80d891f666c677d23b83c3c9f8125ee2b5.tar.gz cpython-604ddf80d891f666c677d23b83c3c9f8125ee2b5.tar.bz2 |
Fix for #489669 (Neil Norwitz): memory leak in test_descr (unicode).
This is best reproduced by
while 1:
class U(unicode):
pass
U(u"xxxxxx")
The unicode_dealloc() code wasn't properly freeing the str and defenc
fields of the Unicode object when freeing a subtype instance. Fixed
this by a subtle refactoring that actually reduces the amount of code
slightly.
Diffstat (limited to 'Objects/stringobject.c')
0 files changed, 0 insertions, 0 deletions