diff --git a/Modules/_lsprof.c b/Modules/_lsprof.c index 79b95f9f152..2c82b18c0e1 100644 --- a/Modules/_lsprof.c +++ b/Modules/_lsprof.c @@ -852,6 +852,7 @@ static int profiler_traverse(ProfilerObject *op, visitproc visit, void *arg) { Py_VISIT(Py_TYPE(op)); + Py_VISIT(op->externalTimer); return 0; }