[Zodb-checkins] CVS: Zope/lib/python/ZODB - cPickleCache.c:1.63

Toby Dickenson tdickenson@geminidataloggers.com
Thu, 18 Apr 2002 05:18:26 -0400


Update of /cvs-repository/Zope/lib/python/ZODB
In directory cvs.zope.org:/tmp/cvs-serv3593

Modified Files:
	cPickleCache.c 
Log Message:
fixed dumb premature DECREF bug

=== Zope/lib/python/ZODB/cPickleCache.c 1.62 => 1.63 ===
     if (jar == NULL)
         return -1;
-    Py_DECREF(jar);
     if (jar==Py_None) {
         PyErr_SetString(PyExc_ValueError,
                         "Cached object jar missing");
 	return -1;
     }
+    Py_DECREF(jar);
 
     object_again = object_from_oid(self, key);
     if (object_again) {