Commit 29f188f3 authored by Armin Rigo's avatar Armin Rigo

fix another (very minor) leak, also found by Sebastian Berg

parent a18539118ea0
......@@ -1070,10 +1070,10 @@ static PyObject *ffi_init_once(FFIObject *self, PyObject *args, PyObject *kwds)
if (res != NULL) {
tup = PyTuple_Pack(2, Py_True, res);
if (tup == NULL || PyDict_SetItem(cache, tag, tup) < 0) {
Py_XDECREF(tup);
Py_DECREF(res);
res = NULL;
}
Py_XDECREF(tup);
}
}
......
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