From: Anders Kaseorg Date: Thu, 1 Feb 2024 16:26:22 +0000 (-0500) Subject: Remove unused Py_XDECREF from _PyFrame_ClearExceptCode (GH-106158) X-Git-Tag: v3.13.0a4~214 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84e0e32184f658b8174b400e6ca9c418bfe8e0fc;p=thirdparty%2FPython%2Fcpython.git 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 --- diff --git a/Python/frame.c b/Python/frame.c index 2865b2eab603..ddf6ef6ba546 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); }