Kaydet (Commit) 18e08e5e authored tarafından Raymond Hettinger's avatar Raymond Hettinger

clearcache() needs to remove the dict as well as clear it.

üst 64cd1e2d
......@@ -1887,8 +1887,7 @@ PyDoc_STRVAR(clearcache_doc,
static PyObject *
clearcache(PyObject *self)
{
if (cache != NULL)
PyDict_Clear(cache);
Py_CLEAR(cache);
Py_RETURN_NONE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment