pgsql: Fix three Python reference leaks in PLy_traceback().

Поиск
Список
Период
Сортировка
От neilc@postgresql.org (Neil Conway)
Тема pgsql: Fix three Python reference leaks in PLy_traceback().
Дата
Msg-id 20060220201044.18EF29DCBC3@postgresql.org
обсуждение исходный текст
Список pgsql-committers
Log Message:
-----------
Fix three Python reference leaks in PLy_traceback(). This would result
in leaking memory when invoking a PL/Python procedure that raises an
exception. Unfortunately this still leaks memory, but at least the
largest leak has been plugged.

This patch also fixes a reference counting mistake in PLy_modify_tuple()
for 8.0, 8.1 and HEAD: we don't actually own a reference to `platt', so
we shouldn't Py_DECREF() it.

Tags:
----
REL8_0_STABLE

Modified Files:
--------------
    pgsql/src/pl/plpython:
        plpython.c (r1.58.4.5 -> r1.58.4.6)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/pl/plpython/plpython.c.diff?r1=1.58.4.5&r2=1.58.4.6)

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

Предыдущее
От: neilc@postgresql.org (Neil Conway)
Дата:
Сообщение: pgsql: Fix three Python reference leaks in PLy_traceback().
Следующее
От: neilc@postgresql.org (Neil Conway)
Дата:
Сообщение: pgsql: Fix three Python reference leaks in PLy_traceback().