[Zodb-checkins] CVS: ZODB3/ZODB - cPickleCache.c:1.76

Jeremy Hylton jeremy@zope.com
Tue, 1 Apr 2003 11:01:54 -0500


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

Modified Files:
	cPickleCache.c 
Log Message:
Only subtract one from _Py_RefTotal.

PyDict_DelItem() will undo the other INCREF.


=== ZODB3/ZODB/cPickleCache.c 1.75 => 1.76 ===
--- ZODB3/ZODB/cPickleCache.c:1.75	Tue Apr  1 10:51:01 2003
+++ ZODB3/ZODB/cPickleCache.c	Tue Apr  1 11:01:54 2003
@@ -503,10 +503,9 @@
     _Py_NewReference(v);
     /* Don't increment total refcount as a result of the 
        shenanigans played in this function.  The _Py_NewReference()
-       call above and the Py_INCREF() below both create artificial
-       references to v.
+       call above creates artificial references to v.
     */
-    _Py_RefTotal -= 2;
+    _Py_RefTotal--;
     /* XXX it may be a problem that v->ob_type is still NULL? 
        I don't understand what this comment means.  --jeremy */
     assert(v->ob_type);