diff options
| author | Antoine Pitrou <solipsis@pitrou.net> | 2011-11-15 00:00:12 +0100 |
|---|---|---|
| committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-11-15 00:00:12 +0100 |
| commit | 9a812cbc899caeb25ab523e904dfac02e4da2999 (patch) | |
| tree | d54805ed801f969bd6bbfc08640c9dfba076b90c /Modules/gcmodule.c | |
| parent | d8b9ae6e8f6d9a562ccdf4700d24c0155979fb4f (diff) | |
| download | cpython-git-9a812cbc899caeb25ab523e904dfac02e4da2999.tar.gz | |
Issue #13389: Full garbage collection passes now clear the freelists for
list and dict objects. They already cleared other freelists in the
interpreter.
Diffstat (limited to 'Modules/gcmodule.c')
| -rw-r--r-- | Modules/gcmodule.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/gcmodule.c b/Modules/gcmodule.c index 6c8ca38d62..154f13623e 100644 --- a/Modules/gcmodule.c +++ b/Modules/gcmodule.c @@ -762,6 +762,8 @@ clear_freelists(void) (void)PyTuple_ClearFreeList(); (void)PyUnicode_ClearFreeList(); (void)PyFloat_ClearFreeList(); + (void)PyList_ClearFreeList(); + (void)PyDict_ClearFreeList(); } static double |
