summaryrefslogtreecommitdiffstats
path: root/Python/errors.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-04-29 01:01:43 (GMT)
committerGitHub <noreply@github.com>2020-04-29 01:01:43 (GMT)
commit4386b9045e5fe1151e65c2816264b5710000eb9f (patch)
treec1bcaffac32a12c8e8f52c1e621d18665b06ac6b /Python/errors.c
parent37af21b667a9f41437b5b8e451497d7725016df5 (diff)
downloadcpython-4386b9045e5fe1151e65c2816264b5710000eb9f.zip
cpython-4386b9045e5fe1151e65c2816264b5710000eb9f.tar.gz
cpython-4386b9045e5fe1151e65c2816264b5710000eb9f.tar.bz2
bpo-40429: PyThreadState_GetFrame() returns a strong ref (GH-19781)
The PyThreadState_GetFrame() function now returns a strong reference to the frame.
Diffstat (limited to 'Python/errors.c')
-rw-r--r--Python/errors.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/errors.c b/Python/errors.c
index db00770..9e53d05 100644
--- a/Python/errors.c
+++ b/Python/errors.c
@@ -1372,7 +1372,7 @@ _PyErr_WriteUnraisableMsg(const char *err_msg_str, PyObject *obj)
}
if (exc_tb == NULL) {
- struct _frame *frame = tstate->frame;
+ PyFrameObject *frame = tstate->frame;
if (frame != NULL) {
exc_tb = _PyTraceBack_FromFrame(NULL, frame);
if (exc_tb == NULL) {