Re: Patch to fix memory leak in fetch in Python interface.

Поиск
Список
Период
Сортировка
От Stephen Robert Norris
Тема Re: Patch to fix memory leak in fetch in Python interface.
Дата
Msg-id 1003359407.31480.6.camel@ws12
обсуждение исходный текст
Ответ на Patch to fix memory leak in fetch in Python interface.  (Stephen Robert Norris <srn@commsecure.com.au>)
Ответы Re: Patch to fix memory leak in fetch in Python interface.  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: Patch to fix memory leak in fetch in Python interface.  (Gerhard Häring <haering_python@gmx.de>)
Re: Patch to fix memory leak in fetch in Python interface.  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-patches
On Thu, 2001-10-18 at 08:46, Stephen Robert Norris wrote:
> This stops the interface from leaking the row tuples (and thus the
> results of every fetch).
>
>     Stephen

Of course, I screwed up the patch. This one is actually correct, I
think:

--- /root/pgmodule.c    Thu Oct 18 08:47:02 2001
+++ pgmodule.c    Thu Oct 18 08:47:25 2001
@@ -566,6 +566,7 @@
         }

         PyList_Append(reslist, rowtuple);
+        Py_DECREF(rowtuple);
         self->current_row++;
     }


Вложения

В списке pgsql-patches по дате отправления:

Предыдущее
От: Stephen Robert Norris
Дата:
Сообщение: Patch to fix memory leak in fetch in Python interface.
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Patch to fix memory leak in fetch in Python interface.