diff --git a/src/interfaces/python/pgmodule.c b/src/interfaces/python/pgmodule.c index ea077b201a..4bf0fa2aa2 100644 --- a/src/interfaces/python/pgmodule.c +++ b/src/interfaces/python/pgmodule.c @@ -561,6 +561,7 @@ pgsource_fetch(pgsourceobject * self, PyObject * args) } PyList_Append(reslist, rowtuple); + Py_DECREF(rowtuple); self->current_row++; }