bpo-40071: Fix refleak in _functools module (GH19172)
This commit is contained in:
parent
79ceccd1ec
commit
b09ae3ff43
|
@ -1424,9 +1424,11 @@ _functools_exec(PyObject *module)
|
|||
&lru_cache_type
|
||||
};
|
||||
|
||||
kwd_mark = _PyObject_CallNoArg((PyObject *)&PyBaseObject_Type);
|
||||
if (!kwd_mark) {
|
||||
return -1;
|
||||
kwd_mark = _PyObject_CallNoArg((PyObject *)&PyBaseObject_Type);
|
||||
if (!kwd_mark) {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
for (size_t i = 0; i < Py_ARRAY_LENGTH(typelist); i++) {
|
||||
|
|
Loading…
Reference in New Issue