Fix three Python reference leaks in PLy_traceback(). This would result
authorNeil Conway <neilc@samurai.com>
Mon, 20 Feb 2006 20:10:45 +0000 (20:10 +0000)
committerNeil Conway <neilc@samurai.com>
Mon, 20 Feb 2006 20:10:45 +0000 (20:10 +0000)
commitbf578aedca91ac3011e22b04e59243abc73f64f6
treeba3e8a3b67a7f6739a2ecc9a7acca00ac694c385
parentac2172d6f6fa76dd93ec21d6e1749b9dd091fe13
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.
src/pl/plpython/plpython.c