python module: docs returned by fetchmany() had one extra ref and were never deallocated

This commit is contained in:
Jean-Francois Dockes 2019-04-20 16:41:42 +02:00
parent 54f0eda990
commit b6fb1f7f26

View File

@ -1122,6 +1122,7 @@ Query_fetchmany(PyObject* _self, PyObject *args, PyObject *kwargs)
break;
}
PyList_Append(reslist, (PyObject*)docobj);
Py_DECREF(docobj);
}
if (PyErr_Occurred()) {