mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
GH-106008: Fix refleak when peepholing None
comparisons (#106367)
This commit is contained in:
parent
c9ce983ae1
commit
e4ba71fe4b
2 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue