diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-05-19 06:31:23 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-05-19 06:31:23 (GMT) |
commit | 02104df4c8fbb1db098646d33453706d2535b51a (patch) | |
tree | 60532902ba338980ccdab84fd1ffc25f0a7803a6 /Python/ceval.c | |
parent | e04fe8c62e20e411c80efc8223970bab7f467855 (diff) | |
download | cpython-02104df4c8fbb1db098646d33453706d2535b51a.zip cpython-02104df4c8fbb1db098646d33453706d2535b51a.tar.gz cpython-02104df4c8fbb1db098646d33453706d2535b51a.tar.bz2 |
Fix #132 from Coverity, retval could have been derefed
if a continue inside a try failed.
Diffstat (limited to 'Python/ceval.c')
-rw-r--r-- | Python/ceval.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index d242414..43dcdd0 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; |