mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
Issue #20437: Fixed 21 potential bugs when deleting objects references.
This commit is contained in:
parent
e9c31470e1
commit
505ff755d7
16 changed files with 34 additions and 63 deletions
|
@ -74,8 +74,7 @@ reap_obj(pylist fd2obj[FD_SETSIZE + 1])
|
|||
{
|
||||
int i;
|
||||
for (i = 0; i < FD_SETSIZE + 1 && fd2obj[i].sentinel >= 0; i++) {
|
||||
Py_XDECREF(fd2obj[i].obj);
|
||||
fd2obj[i].obj = NULL;
|
||||
Py_CLEAR(fd2obj[i].obj);
|
||||
}
|
||||
fd2obj[0].sentinel = -1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue