[Zope-Checkins] CVS: ZODB3/ZODB - cPickleCache.c:1.85.6.1

Jeremy Hylton jeremy at zope.com
Wed Oct 1 15:18:06 EDT 2003


Update of /cvs-repository/ZODB3/ZODB
In directory cvs.zope.org:/tmp/cvs-serv31538

Modified Files:
      Tag: Zope-2_7-branch
	cPickleCache.c 
Log Message:
Make the clear() method release all references to the Connection.


=== ZODB3/ZODB/cPickleCache.c 1.85 => 1.85.6.1 ===
--- ZODB3/ZODB/cPickleCache.c:1.85	Fri May 30 15:20:55 2003
+++ ZODB3/ZODB/cPickleCache.c	Wed Oct  1 15:18:06 2003
@@ -499,6 +499,17 @@
 	Py_DECREF(o);
     }
     self->ring_lock = 0;
+
+    /* Free two references to the Connection, which can't be discovered
+       via garbage collection.
+    */
+
+    Py_DECREF(self->setklassstate);
+    self->setklassstate = NULL;
+
+    Py_DECREF(self->jar);
+    self->jar = NULL;
+
     Py_INCREF(Py_None);
     return Py_None;
 }




More information about the Zope-Checkins mailing list