Commit 257e3659 authored by Jim Fulton's avatar Jim Fulton

Fixed a reference leak.

parent a3de2ce8
...@@ -354,6 +354,7 @@ _invalidate(ccobject *self, PyObject *key) ...@@ -354,6 +354,7 @@ _invalidate(ccobject *self, PyObject *key)
{ {
static PyObject *_p_invalidate = NULL; static PyObject *_p_invalidate = NULL;
PyObject *meth, *v; PyObject *meth, *v;
int result;
v = PyDict_GetItem(self->data, key); v = PyDict_GetItem(self->data, key);
if (v == NULL) if (v == NULL)
...@@ -391,7 +392,9 @@ _invalidate(ccobject *self, PyObject *key) ...@@ -391,7 +392,9 @@ _invalidate(ccobject *self, PyObject *key)
v = PyObject_CallObject(meth, NULL); v = PyObject_CallObject(meth, NULL);
Py_DECREF(meth); Py_DECREF(meth);
return v == NULL ? -1 : 0; result = v == NULL ? -1 : 0;
Py_DECREF(v);
return result;
} }
static PyObject * static PyObject *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment