Commit 18e08e5e authored by Raymond Hettinger's avatar Raymond Hettinger

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

parent 64cd1e2d
...@@ -1887,8 +1887,7 @@ PyDoc_STRVAR(clearcache_doc, ...@@ -1887,8 +1887,7 @@ PyDoc_STRVAR(clearcache_doc,
static PyObject * static PyObject *
clearcache(PyObject *self) clearcache(PyObject *self)
{ {
if (cache != NULL) Py_CLEAR(cache);
PyDict_Clear(cache);
Py_RETURN_NONE; 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