diff --git a/Python/ceval.c b/Python/ceval.c index d24241465a65..43dcdd035a51 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -2173,6 +2173,10 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag) case CONTINUE_LOOP: retval = PyInt_FromLong(oparg); + if (!retval) { + x = NULL; + break; + } why = WHY_CONTINUE; goto fast_block_end;