From 1fbc118c5d3916e920a57cda3cb6d9a0292de26e Mon Sep 17 00:00:00 2001 From: Savannah Ostrowski Date: Thu, 5 Sep 2024 10:56:07 -0700 Subject: GH-123545: Remove duplicate Py_DECREF when handling _PyOptimizer_Optimize errors (GH-123546) --- Python/bytecodes.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'Python/bytecodes.c') diff --git a/Python/bytecodes.c b/Python/bytecodes.c index c4cc8127baf..b5a642dccd2 100644 --- a/Python/bytecodes.c +++ b/Python/bytecodes.c @@ -4739,8 +4739,6 @@ dummy_func( if (optimized <= 0) { exit->temperature = restart_backoff_counter(temperature); if (optimized < 0) { - Py_DECREF(current_executor); - tstate->previous_executor = Py_None; GOTO_UNWIND(); } tstate->previous_executor = (PyObject *)current_executor; @@ -4822,8 +4820,6 @@ dummy_func( if (optimized <= 0) { exit->temperature = restart_backoff_counter(exit->temperature); if (optimized < 0) { - Py_DECREF(current_executor); - tstate->previous_executor = Py_None; GOTO_UNWIND(); } GOTO_TIER_ONE(target); -- cgit v1.2.3