Re: [PATCHES] plpython: fix memory leak

2006-02-20 Thread Neil Conway
On Sun, 2006-02-19 at 20:34 -0500, Neil Conway wrote: > Attached is a patch that fixes three Python reference leaks in > PLy_traceback(): the objects returned by PyErr_Fetch() are owned by the > caller, so their reference count should be decremented. Applied to HEAD and back branches. I also notic

[PATCHES] plpython: fix memory leak

2006-02-19 Thread Neil Conway
Attached is a patch that fixes three Python reference leaks in PLy_traceback(): the objects returned by PyErr_Fetch() are owned by the caller, so their reference count should be decremented. The memory leak can be reproduced as follows: create function import_fail() returns text as 'import foosock