Skip to content

Commit 475db68

Browse files
Guard for Py_REF_DEBUG.
1 parent f64202d commit 475db68

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Python/pystate.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -904,9 +904,11 @@ PyInterpreterState_Delete(PyInterpreterState *interp)
904904

905905
_PyEval_FiniState(&interp->ceval);
906906

907+
#ifdef Py_REF_DEBUG
907908
// XXX This call should be done at the end of clear_interpreter(),
908909
// but currently some objects get decref'ed after that.
909910
_PyInterpreterState_FinalizeRefTotal(interp);
911+
#endif
910912

911913
HEAD_LOCK(runtime);
912914
PyInterpreterState **p;

0 commit comments

Comments
 (0)