pgsql: Fix three Python reference leaks in PLy_traceback(). - Mailing list pgsql-committers

From neilc@postgresql.org (Neil Conway)
Subject pgsql: Fix three Python reference leaks in PLy_traceback().
Date
Msg-id 20060220201042.1A8EF9DCB82@postgresql.org
Whole thread Raw
List 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_1_STABLE

Modified Files:
--------------
    pgsql/src/pl/plpython:
        plpython.c (r1.66.2.3 -> r1.66.2.4)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/pl/plpython/plpython.c.diff?r1=1.66.2.3&r2=1.66.2.4)

pgsql-committers by date:

Previous
From: neilc@postgresql.org (Neil Conway)
Date:
Subject: pgsql: Fix three Python reference leaks in PLy_traceback().
Next
From: neilc@postgresql.org (Neil Conway)
Date:
Subject: pgsql: Fix three Python reference leaks in PLy_traceback().