Call _PyObject_DebugMallocStats() earlier in Py_FinalizeEx(), before
the interpreter is deleted.
}
#endif /* Py_TRACE_REFS */
+#ifdef WITH_PYMALLOC
+ if (malloc_stats) {
+ _PyObject_DebugMallocStats(stderr);
+ }
+#endif
+
finalize_interp_delete(tstate->interp);
#ifdef Py_REF_DEBUG
#endif
_Py_FinalizeAllocatedBlocks(runtime);
-#ifdef WITH_PYMALLOC
- if (malloc_stats) {
- _PyObject_DebugMallocStats(stderr);
- }
-#endif
-
call_ll_exitfuncs(runtime);
_PyRuntime_Finalize();