diff options
| author | Antoine Pitrou <solipsis@pitrou.net> | 2013-05-19 01:11:58 +0200 |
|---|---|---|
| committer | Antoine Pitrou <solipsis@pitrou.net> | 2013-05-19 01:11:58 +0200 |
| commit | 4bb13f5d6801f4857651f13a800a964cb8b47223 (patch) | |
| tree | 68db926bdb01367dfda252b31225159186ce328d /Python/import.c | |
| parent | 9c01479e0bc1986a82850f216ec97e31473d8fd1 (diff) | |
| download | cpython-4bb13f5d6801f4857651f13a800a964cb8b47223.tar.gz | |
Issue #17937: Try harder to collect cyclic garbage at shutdown.
Diffstat (limited to 'Python/import.c')
| -rw-r--r-- | Python/import.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/import.c b/Python/import.c index 1fbafecc1b..a42b0f89b0 100644 --- a/Python/import.c +++ b/Python/import.c @@ -444,6 +444,7 @@ PyImport_Cleanup(void) /* Finally, clear and delete the modules directory */ PyDict_Clear(modules); + _PyGC_CollectNoFail(); interp->modules = NULL; Py_DECREF(modules); } |
