]> granicus.if.org Git - python/commit
Fix SF bug 574207 (chained __slots__ dealloc segfault).
authorGuido van Rossum <guido@python.org>
Tue, 6 Aug 2002 21:41:44 +0000 (21:41 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 6 Aug 2002 21:41:44 +0000 (21:41 +0000)
commit22b1387c51a979a6921c18c6e3f7126d24b85e7c
treedc05245c255947cd5384036a79a9898b1ec9426d
parent31f3db39f395eef33cb23f2862291c62aaed623f
Fix SF bug 574207 (chained __slots__ dealloc segfault).

This is inspired by SF patch 581742 (by Jonathan Hogg, who also
submitted the bug report, and two other suggested patches), but
separates the non-GC case from the GC case to avoid testing for GC
several times.

Had to fix an assert() from call_finalizer() that asserted that the
object wasn't untracked, because it's possible that the object isn't
GC'ed!
Objects/typeobject.c