python module: docs returned by fetchmany() had one extra ref and were never deallocated
This commit is contained in:
@@ -1122,6 +1122,7 @@ Query_fetchmany(PyObject* _self, PyObject *args, PyObject *kwargs)
|
||||
break;
|
||||
}
|
||||
PyList_Append(reslist, (PyObject*)docobj);
|
||||
Py_DECREF(docobj);
|
||||
}
|
||||
|
||||
if (PyErr_Occurred()) {
|
||||
|
||||
Reference in New Issue
Block a user