https://github.com/python/cpython/commit/84e0e32184f658b8174b400e6ca9c418bfe8e0fc
commit: 84e0e32184f658b8174b400e6ca9c418bfe8e0fc
branch: main
author: Anders Kaseorg <ande...@mit.edu>
committer: serhiy-storchaka <storch...@gmail.com>
date: 2024-02-01T18:26:22+02:00
summary:

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 <ande...@mit.edu>

files:
M Python/frame.c

diff --git a/Python/frame.c b/Python/frame.c
index 2865b2eab603c2..ddf6ef6ba5465c 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);
 }

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: arch...@mail-archive.com

Reply via email to