summaryrefslogtreecommitdiffstats
path: root/Python/executor_cases.c.h
diff options
context:
space:
mode:
authorSavannah Ostrowski <savannahostrowski@gmail.com>2024-09-05 17:56:07 (GMT)
committerGitHub <noreply@github.com>2024-09-05 17:56:07 (GMT)
commit1fbc118c5d3916e920a57cda3cb6d9a0292de26e (patch)
treef7a653f7ae00f8297b8b8434306ce2016dab14ec /Python/executor_cases.c.h
parentaa1339aaaa6363c38186defaa079d069b4cb08b2 (diff)
downloadcpython-1fbc118c5d3916e920a57cda3cb6d9a0292de26e.zip
cpython-1fbc118c5d3916e920a57cda3cb6d9a0292de26e.tar.gz
cpython-1fbc118c5d3916e920a57cda3cb6d9a0292de26e.tar.bz2
GH-123545: Remove duplicate Py_DECREF when handling _PyOptimizer_Optimize errors (GH-123546)
Diffstat (limited to 'Python/executor_cases.c.h')
-rw-r--r--Python/executor_cases.c.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/Python/executor_cases.c.h b/Python/executor_cases.c.h
index d4be790..6d687bb 100644
--- a/Python/executor_cases.c.h
+++ b/Python/executor_cases.c.h
@@ -5305,8 +5305,6 @@
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;
@@ -5437,8 +5435,6 @@
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);