From: Bruce Momjian Date: Fri, 19 Oct 2001 15:00:26 +0000 (+0000) Subject: > This stops the interface from leaking the row tuples (and thus the X-Git-Tag: REL7_2_BETA1~53 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ece1b67f549f4ec5f9676c48ba198098efb059f7;p=thirdparty%2Fpostgresql.git > This stops the interface from leaking the row tuples (and thus the > results of every fetch). Stephen Robert Norris --- diff --git a/src/interfaces/python/pgmodule.c b/src/interfaces/python/pgmodule.c index ea077b201a3..4bf0fa2aa2f 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++; }