Fix #132 from Coverity, retval could have been derefed

if a continue inside a try failed.
This commit is contained in:
Neal Norwitz 2006-05-19 06:31:23 +00:00
parent e04fe8c62e
commit 02104df4c8
1 changed files with 4 additions and 0 deletions

View File

@ -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;