mirror of
https://github.com/python/cpython.git
synced 2025-09-16 13:47:31 +00:00
clearcache() needs to remove the dict as well as clear it.
This commit is contained in:
parent
64cd1e2d91
commit
18e08e5e61
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue