summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Python/ceval.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index a6201b44ce..04dda2552c 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -2142,6 +2142,10 @@ PyEval_EvalFrame(PyFrameObject *f)
case CONTINUE_LOOP:
retval = PyInt_FromLong(oparg);
+ if (!retval) {
+ x = NULL;
+ break;
+ }
why = WHY_CONTINUE;
goto fast_block_end;