OSDN Git Service

> This stops the interface from leaking the row tuples (and thus the
authorBruce Momjian <bruce@momjian.us>
Fri, 19 Oct 2001 15:00:26 +0000 (15:00 +0000)
committerBruce Momjian <bruce@momjian.us>
Fri, 19 Oct 2001 15:00:26 +0000 (15:00 +0000)
> results of every fetch).

Stephen Robert Norris

src/interfaces/python/pgmodule.c

index ea077b2..4bf0fa2 100644 (file)
@@ -561,6 +561,7 @@ pgsource_fetch(pgsourceobject * self, PyObject * args)
                }
 
                PyList_Append(reslist, rowtuple);
+               Py_DECREF(rowtuple);
                self->current_row++;
        }