mirror of https://github.com/python/cpython
clearcache() needs to remove the dict as well as clear it.
This commit is contained in:
parent
64cd1e2d91
commit
18e08e5e61
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue