Fix three Python reference leaks in PLy_traceback(). This would result

Neil Conway <neilc@samurai.com>

Commit: 797deb5092d1ee58b843a3b428b21981648a82b5
Author: Neil Conway <neilc@samurai.com>
Date: 2006-02-20T20:10:41Z
Releases: 8.1.4
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.

Files

PathChange+/−
src/pl/plpython/plpython.c modified +6 −4