Elusive is the one missing DECREF, conclusive is this commit.
Fixes #6 - the issue was that when PyTuple_Pack constructs a tuple, it makes a reference of its own. This was not taken into account, so a DECREF was missing.
This commit is contained in:
parent
c3215866c5
commit
3331c59d77
@ -768,6 +768,7 @@ static PyObject *_PylibMC_DoMulti(PyObject *values, PyObject *func,
|
||||
goto iter_error;
|
||||
|
||||
args = PyTuple_Pack(2, key, value);
|
||||
Py_DECREF(value);
|
||||
} else {
|
||||
args = PyTuple_Pack(1, key);
|
||||
}
|
||||
|
Reference in New Issue
Block a user