Remove duplicative Py_DECREF
when handling _PyOptimizer_Optimize
errors
#123545
Labels
3.13
bugs and security fixes
3.14
bugs and security fixes
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
type-bug
An unexpected behavior, bug, or error
There are two places in the code where we call
Py_DECREF
twice when_PyOptimizer_Optimize
returns-1
. In both cases, we do so in the conditional block and then as part of theGOTO_UNWIND
macro. This never really happens in practice, but it would be problematic if this error'd.cpython/Python/bytecodes.c
Line 4741 in 34ddb64
cpython/Python/bytecodes.c
Line 4824 in 34ddb64
Linked PRs
Py_DECREF
when handling_PyOptimizer_Optimize
errors #123546The text was updated successfully, but these errors were encountered: