From f291404a802d6a1bc50f817c7a26ff3ac9a199ff Mon Sep 17 00:00:00 2001 From: Mark Shannon Date: Thu, 28 Oct 2021 13:59:11 +0100 Subject: bpo-45637: Store the frame pointer in the cframe (GH-29267) * Rename 'frame' to 'current_frame' --- Python/pylifecycle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/pylifecycle.c') diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index 9ce845ca61..3ccf32ab1b 100644 --- a/Python/pylifecycle.c +++ b/Python/pylifecycle.c @@ -2031,7 +2031,7 @@ Py_EndInterpreter(PyThreadState *tstate) if (tstate != _PyThreadState_GET()) { Py_FatalError("thread is not current"); } - if (tstate->frame != NULL) { + if (tstate->cframe->current_frame != NULL) { Py_FatalError("thread still has a frame"); } interp->finalizing = 1; -- cgit v1.2.1