summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
Diffstat (limited to 'Modules')
-rw-r--r--Modules/gcmodule.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/gcmodule.c b/Modules/gcmodule.c
index a75d5fe..f36c7f5 100644
--- a/Modules/gcmodule.c
+++ b/Modules/gcmodule.c
@@ -1865,9 +1865,10 @@ _PyGC_DumpShutdownStats(void)
}
void
-_PyGC_Fini(void)
+_PyGC_Fini(_PyRuntimeState *runtime)
{
- Py_CLEAR(_PyRuntime.gc.callbacks);
+ struct _gc_runtime_state *gc = &runtime->gc;
+ Py_CLEAR(gc->callbacks);
}
/* for debugging */