mirror of https://github.com/python/cpython.git
Fix #132 from Coverity, retval could have been derefed
if a continue inside a try failed.
This commit is contained in:
parent
e04fe8c62e
commit
02104df4c8
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue