mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
bpo-46857: Fix refleak in OSError INIT_ALIAS() (GH-31594)
_Py_GetRefTotal() no longer decrements _PySet_Dummy refcount.
This commit is contained in:
parent
e182c660b6
commit
ad56919c5e
3 changed files with 7 additions and 18 deletions
|
@ -61,12 +61,7 @@ Py_ssize_t _Py_RefTotal;
|
|||
Py_ssize_t
|
||||
_Py_GetRefTotal(void)
|
||||
{
|
||||
PyObject *o;
|
||||
Py_ssize_t total = _Py_RefTotal;
|
||||
o = _PySet_Dummy;
|
||||
if (o != NULL)
|
||||
total -= Py_REFCNT(o);
|
||||
return total;
|
||||
return _Py_RefTotal;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue