From ca173e2a0719c174af0195873b67e59abd4230cf Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Tue, 8 Dec 2009 19:35:12 +0000 Subject: [PATCH] Fix transient refleaks in test_urllib. Thanks to Florent Xicluna. --- Lib/urllib.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/urllib.py b/Lib/urllib.py index 1c31d48f9c3..be77e1de647 100644 --- a/Lib/urllib.py +++ b/Lib/urllib.py @@ -95,6 +95,8 @@ def urlretrieve(url, filename=None, reporthook=None, data=None): def urlcleanup(): if _urlopener: _urlopener.cleanup() + _safemaps.clear() + ftpcache.clear() # check for SSL try: