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

This commit is contained in:
Raymond Hettinger 2008-01-18 00:10:42 +00:00
parent 64cd1e2d91
commit 18e08e5e61
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}