[Zodb-checkins] SVN: ZODB/branches/jim-readCurrent/src/persistent/cPickleCache.c Fixed a reference leak.
Jim Fulton
jim at zope.com
Wed Sep 1 18:03:42 EDT 2010
Log message for revision 116110:
Fixed a reference leak.
Changed:
U ZODB/branches/jim-readCurrent/src/persistent/cPickleCache.c
-=-
Modified: ZODB/branches/jim-readCurrent/src/persistent/cPickleCache.c
===================================================================
--- ZODB/branches/jim-readCurrent/src/persistent/cPickleCache.c 2010-09-01 21:55:58 UTC (rev 116109)
+++ ZODB/branches/jim-readCurrent/src/persistent/cPickleCache.c 2010-09-01 22:03:42 UTC (rev 116110)
@@ -354,6 +354,7 @@
{
static PyObject *_p_invalidate = NULL;
PyObject *meth, *v;
+ int result;
v = PyDict_GetItem(self->data, key);
if (v == NULL)
@@ -391,7 +392,9 @@
v = PyObject_CallObject(meth, NULL);
Py_DECREF(meth);
- return v == NULL ? -1 : 0;
+ result = v == NULL ? -1 : 0;
+ Py_DECREF(v);
+ return result;
}
static PyObject *
More information about the Zodb-checkins
mailing list