mirror of
https://github.com/python/cpython.git
synced 2025-10-16 19:57:59 +00:00
Issue #20437: Fixed 22 potential bugs when deleting objects references.
This commit is contained in:
commit
dfe98a102e
15 changed files with 34 additions and 63 deletions
|
@ -66,8 +66,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