mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-40137: Fix refleak in _functools_exec() (GH-24006)
This commit is contained in:
parent
056c08211b
commit
ba0e49a464
1 changed files with 1 additions and 0 deletions
|
@ -1436,6 +1436,7 @@ _functools_exec(PyObject *module)
|
|||
Py_DECREF(lru_cache_type);
|
||||
return -1;
|
||||
}
|
||||
Py_DECREF(lru_cache_type);
|
||||
|
||||
state->keyobject_type = (PyTypeObject *)PyType_FromModuleAndSpec(module,
|
||||
&keyobject_type_spec, NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue