Skip to content

Commit

Permalink
Fix memory leak and restore original comment
Browse files Browse the repository at this point in the history
  • Loading branch information
gvanrossum committed Jul 12, 2023
1 parent 002b033 commit 3bb46a4
Show file tree
Hide file tree
Showing 3 changed files with 145 additions and 143 deletions.
3 changes: 2 additions & 1 deletion Python/bytecodes.c
Original file line number Diff line number Diff line change
Expand Up @@ -2443,8 +2443,9 @@ dummy_func(
STAT_INC(FOR_ITER, hit);
if (r->len <= 0) {
STACK_SHRINK(1);
Py_DECREF(r);
SKIP_OVER(INLINE_CACHE_ENTRIES_FOR_ITER);
/* Jump forward oparg, then skip following END_FOR instruction */
// Jump over END_FOR instruction.
JUMPBY(oparg + 1);
DISPATCH();
}
Expand Down
32 changes: 16 additions & 16 deletions Python/executor_cases.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3bb46a4

Please sign in to comment.