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.
int
lericson 2010-03-16 19:59:17 +01:00
parent c3215866c5
commit 3331c59d77
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}