summaryrefslogtreecommitdiffstats
path: root/Python/frame.c
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2022-08-25 09:16:55 (GMT)
committerGitHub <noreply@github.com>2022-08-25 09:16:55 (GMT)
commitc09fa7542c6d9b724e423b14c6fb5f4338eabd12 (patch)
treee65689bd1bbb0d69a4cd54f3e475e79cc8d92d89 /Python/frame.c
parent8db7693bbff55f5ed4bfc194c77c561e71471bf3 (diff)
downloadcpython-c09fa7542c6d9b724e423b14c6fb5f4338eabd12.zip
cpython-c09fa7542c6d9b724e423b14c6fb5f4338eabd12.tar.gz
cpython-c09fa7542c6d9b724e423b14c6fb5f4338eabd12.tar.bz2
GH-96237: Allow non-functions as reference-holder in frames. (GH-96238)
Diffstat (limited to 'Python/frame.c')
-rw-r--r--Python/frame.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/frame.c b/Python/frame.c
index 7c6705e..14464df 100644
--- a/Python/frame.c
+++ b/Python/frame.c
@@ -13,7 +13,7 @@ _PyFrame_Traverse(_PyInterpreterFrame *frame, visitproc visit, void *arg)
{
Py_VISIT(frame->frame_obj);
Py_VISIT(frame->f_locals);
- Py_VISIT(frame->f_func);
+ Py_VISIT(frame->f_funcobj);
Py_VISIT(frame->f_code);
/* locals */
PyObject **locals = _PyFrame_GetLocalsArray(frame);
@@ -114,7 +114,7 @@ _PyFrame_Clear(_PyInterpreterFrame *frame)
}
Py_XDECREF(frame->frame_obj);
Py_XDECREF(frame->f_locals);
- Py_DECREF(frame->f_func);
+ Py_DECREF(frame->f_funcobj);
Py_DECREF(frame->f_code);
}