bpo-40137: Fix refleak in _functools_exec() (GH-24006)
This commit is contained in:
parent
056c08211b
commit
ba0e49a464
|
@ -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…
Reference in New Issue