From ef5f2b9dbbfade547daf1e360371a59e80006462 Mon Sep 17 00:00:00 2001
From: Neil Schemenauer <nascheme@enme.ucalgary.ca>
Date: Fri, 22 Sep 2000 15:30:16 +0000
Subject: - plug a memory leak due to circular lists

---
 Lib/test/test_pickle.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Lib/test/test_pickle.py b/Lib/test/test_pickle.py
index ff9c467..3c81fdd 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
-- 
cgit v0.12

