diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-05-19 06:31:23 +0000 |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-05-19 06:31:23 +0000 |
commit | d3b9221c4083fd01c75e0d97eed05a5ffc4fbe53 (patch) | |
tree | a46a5b4d065b0ac8aee9e0c22e3a7ab8fe9b6432 /Python | |
parent | 1125164dba20e21da268db9014bcf053bead5de4 (diff) | |
download | cpython-d3b9221c4083fd01c75e0d97eed05a5ffc4fbe53.tar.gz |
Fix #132 from Coverity, retval could have been derefed
if a continue inside a try failed.
Diffstat (limited to 'Python')
-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 d24241465a..43dcdd035a 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; |