Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix refleak when peepholing branches on None
  • Loading branch information
brandtbucher committed Jul 3, 2023
commit e05186a74d3fa1f83dfafa1719b10d4b992ba677
2 changes: 1 addition & 1 deletion Python/flowgraph.c
Original file line number Diff line number Diff line change
Expand Up @@ -1377,9 +1377,9 @@ optimize_basic_block(PyObject *const_cache, basicblock *bb, PyObject *consts)
goto error;
}
if (!Py_IsNone(cnt)) {
Py_DECREF(cnt);
break;
}
Py_DECREF(cnt);
if (bb->b_iused <= i + 2) {
break;
}
Expand Down