diff options
author | Victor Stinner <vstinner@python.org> | 2020-12-30 01:24:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-30 01:24:43 (GMT) |
commit | ba0e49a4648e727d1a16b3ce479499eb39f22311 (patch) | |
tree | 6eaa26ebbfdaf063f8b9664d6562abe0c237d8e1 /Modules/_functoolsmodule.c | |
parent | 056c08211b402b4dbc1530a9de9d00ad5309909f (diff) | |
download | cpython-ba0e49a4648e727d1a16b3ce479499eb39f22311.zip cpython-ba0e49a4648e727d1a16b3ce479499eb39f22311.tar.gz cpython-ba0e49a4648e727d1a16b3ce479499eb39f22311.tar.bz2 |
bpo-40137: Fix refleak in _functools_exec() (GH-24006)
Diffstat (limited to 'Modules/_functoolsmodule.c')
-rw-r--r-- | Modules/_functoolsmodule.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_functoolsmodule.c b/Modules/_functoolsmodule.c index b121ec7..1fcaf29 100644 --- a/Modules/_functoolsmodule.c +++ b/Modules/_functoolsmodule.c @@ -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); |