Skip to content

Commit bea2cff

Browse files
committed
Fix a refleak during error handling
1 parent 490b8da commit bea2cff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Python/ceval.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4745,12 +4745,12 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, InterpreterFrame *frame, int thr
47454745
default:
47464746
Py_UNREACHABLE();
47474747
}
4748-
if (res == NULL) {
4749-
goto error;
4750-
}
47514748
Py_DECREF(lhs);
47524749
Py_DECREF(rhs);
47534750
SET_TOP(res);
4751+
if (res == NULL) {
4752+
goto error;
4753+
}
47544754
DISPATCH();
47554755
}
47564756

0 commit comments

Comments
 (0)