commit | 02104df4c8fbb1db098646d33453706d2535b51a | [log] [tgz] |
---|---|---|
author | Neal Norwitz <nnorwitz@gmail.com> | Fri May 19 06:31:23 2006 +0000 |
committer | Neal Norwitz <nnorwitz@gmail.com> | Fri May 19 06:31:23 2006 +0000 |
tree | 60532902ba338980ccdab84fd1ffc25f0a7803a6 | |
parent | e04fe8c62e20e411c80efc8223970bab7f467855 [diff] |
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 d242414..43dcdd0 100644 --- a/Python/ceval.c +++ b/Python/ceval.c
@@ -2173,6 +2173,10 @@ case CONTINUE_LOOP: retval = PyInt_FromLong(oparg); + if (!retval) { + x = NULL; + break; + } why = WHY_CONTINUE; goto fast_block_end;