summaryrefslogtreecommitdiffstats
path: root/Python/frame.c
diff options
context:
space:
mode:
authorAnders Kaseorg <andersk@mit.edu>2024-02-01 16:26:22 (GMT)
committerGitHub <noreply@github.com>2024-02-01 16:26:22 (GMT)
commit84e0e32184f658b8174b400e6ca9c418bfe8e0fc (patch)
tree9e25966b698ff7cd85db2c36c699f7c54dd1f22b /Python/frame.c
parent4dbb198d279a06fed74ea4c38f93d658baf38170 (diff)
downloadcpython-84e0e32184f658b8174b400e6ca9c418bfe8e0fc.zip
cpython-84e0e32184f658b8174b400e6ca9c418bfe8e0fc.tar.gz
cpython-84e0e32184f658b8174b400e6ca9c418bfe8e0fc.tar.bz2
Remove unused Py_XDECREF from _PyFrame_ClearExceptCode (GH-106158)
frame->frame_obj was set to NULL a few lines earlier. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Diffstat (limited to 'Python/frame.c')
-rw-r--r--Python/frame.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/Python/frame.c b/Python/frame.c
index 2865b2e..ddf6ef6 100644
--- a/Python/frame.c
+++ b/Python/frame.c
@@ -139,7 +139,6 @@ _PyFrame_ClearExceptCode(_PyInterpreterFrame *frame)
for (int i = 0; i < frame->stacktop; i++) {
Py_XDECREF(frame->localsplus[i]);
}
- Py_XDECREF(frame->frame_obj);
Py_XDECREF(frame->f_locals);
Py_DECREF(frame->f_funcobj);
}