From: Neil Schemenauer Date: Fri, 22 Sep 2000 15:30:16 +0000 (+0000) Subject: - plug a memory leak due to circular lists X-Git-Tag: v2.0b2~126 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ef5f2b9dbbfade547daf1e360371a59e80006462;p=thirdparty%2FPython%2Fcpython.git - plug a memory leak due to circular lists --- diff --git a/Lib/test/test_pickle.py b/Lib/test/test_pickle.py index ff9c4673bd69..3c81fdd0841b 100644 --- a/Lib/test/test_pickle.py +++ b/Lib/test/test_pickle.py @@ -80,6 +80,9 @@ def dotest(pickle): x2 = pickle.loads(s) if x2 == r: print "ok" else: print "bad" + # don't create cyclic garbage + del x2[0] + del r[0] # Test protection against closed files import tempfile, os