Skip to content

Commit

Permalink
bpo-40137: Fix refleak in _functools_exec() (GH-24006)
Browse files Browse the repository at this point in the history
  • Loading branch information
vstinner committed Dec 30, 2020
1 parent 056c082 commit ba0e49a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Modules/_functoolsmodule.c
Expand Up @@ -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);
Expand Down

0 comments on commit ba0e49a

Please sign in to comment.