aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/python/pgmodule.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2001-10-19 15:00:26 +0000
committerBruce Momjian <bruce@momjian.us>2001-10-19 15:00:26 +0000
commitece1b67f549f4ec5f9676c48ba198098efb059f7 (patch)
tree72cae8737814b1fbbf98cdfede62114c081c68aa /src/interfaces/python/pgmodule.c
parent9590249e14062384bae935cd0d39318d1e70d1bb (diff)
downloadpostgresql-ece1b67f549f4ec5f9676c48ba198098efb059f7.tar.gz
postgresql-ece1b67f549f4ec5f9676c48ba198098efb059f7.zip
> This stops the interface from leaking the row tuples (and thus the
> results of every fetch). Stephen Robert Norris
Diffstat (limited to 'src/interfaces/python/pgmodule.c')
-rw-r--r--src/interfaces/python/pgmodule.c1
1 files changed, 1 insertions, 0 deletions
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++;
}