From: Neal Norwitz Date: Fri, 19 May 2006 06:31:23 +0000 (+0000) Subject: Fix #132 from Coverity, retval could have been derefed X-Git-Tag: v2.5b1~615 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=02104df4c8fbb1db098646d33453706d2535b51a;p=thirdparty%2FPython%2Fcpython.git Fix #132 from Coverity, retval could have been derefed if a continue inside a try failed. --- 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;