mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +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 *
|
||||
clearcache(PyObject *self)
|
||||
{
|
||||
if (cache != NULL)
|
||||
PyDict_Clear(cache);
|
||||
Py_CLEAR(cache);
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue