aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Python/traceback.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/traceback.c b/Python/traceback.c
index fee9d12a00e..c1c2c16ac13 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);