diff options
author | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2002-03-29 03:07:29 (GMT) |
---|---|---|
committer | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2002-03-29 03:07:29 (GMT) |
commit | 835840560bdd9edcf21186bace543e316fe921ca (patch) | |
tree | a70a7014680cae8bbb8bfa4e53a05f2dda32a413 | |
parent | f589c059f4101f700c08841df828758b1c8dcda0 (diff) | |
download | cpython-835840560bdd9edcf21186bace543e316fe921ca.zip cpython-835840560bdd9edcf21186bace543e316fe921ca.tar.gz cpython-835840560bdd9edcf21186bace543e316fe921ca.tar.bz2 |
Call PyObject_GC_UnTrack before putting an object on the list of trash.
-rw-r--r-- | Python/traceback.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/traceback.c b/Python/traceback.c index fee9d12..52f3202 100644 --- a/Python/traceback.c +++ b/Python/traceback.c @@ -35,8 +35,8 @@ tb_getattr(tracebackobject *tb, char *name) static void tb_dealloc(tracebackobject *tb) { + PyObject_GC_UnTrack(tb); Py_TRASHCAN_SAFE_BEGIN(tb) - _PyObject_GC_UNTRACK(tb); Py_XDECREF(tb->tb_next); Py_XDECREF(tb->tb_frame); PyObject_GC_Del(tb); @@ -120,7 +120,7 @@ newtracebackobject(tracebackobject *next, PyFrameObject *frame, int lasti, tb->tb_frame = frame; tb->tb_lasti = lasti; tb->tb_lineno = lineno; - _PyObject_GC_TRACK(tb); + PyObject_GC_Track(tb); } return tb; } |