aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/bytecodes.c
diff options
context:
space:
mode:
authorSavannah Ostrowski <savannahostrowski@gmail.com>2024-09-05 10:56:07 -0700
committerGitHub <noreply@github.com>2024-09-05 10:56:07 -0700
commit1fbc118c5d3916e920a57cda3cb6d9a0292de26e (patch)
treef7a653f7ae00f8297b8b8434306ce2016dab14ec /Python/bytecodes.c
parentaa1339aaaa6363c38186defaa079d069b4cb08b2 (diff)
downloadcpython-1fbc118c5d3916e920a57cda3cb6d9a0292de26e.tar.gz
cpython-1fbc118c5d3916e920a57cda3cb6d9a0292de26e.zip
GH-123545: Remove duplicate Py_DECREF when handling _PyOptimizer_Optimize errors (GH-123546)
Diffstat (limited to 'Python/bytecodes.c')
-rw-r--r--Python/bytecodes.c4
1 files changed, 0 insertions, 4 deletions
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);