Skip to content
Permalink
Browse files

bpo-40071: Fix refleak in _functools module (GH19172)

  • Loading branch information
phsilva committed Mar 26, 2020
1 parent 79ceccd commit b09ae3ff43111a336c0b706ea32fa07f88c992d9
Showing with 4 additions and 2 deletions.
  1. +4 −2 Modules/_functoolsmodule.c
@@ -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++) {

0 comments on commit b09ae3f

Please sign in to comment.
You can’t perform that action at this time.