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