Re: plpython: fix memory leak - Mailing list pgsql-patches

From Neil Conway
Subject Re: plpython: fix memory leak
Date
Msg-id 1140466341.2615.61.camel@localhost.localdomain
Whole thread Raw
In response to plpython: fix memory leak  (Neil Conway <neilc@samurai.com>)
List pgsql-patches
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 noticed a minor bug in
PLy_modify_tuple(): we don't own a reference to `platt', so we shouldn't
try to decrement its refcount. I only bothered fixing the latter bug in
8.0+

-Neil



pgsql-patches by date:

Previous
From: Simon Riggs
Date:
Subject: Re: WIP: further sorting speedup
Next
From: Martijn van Oosterhout
Date:
Subject: Re: [PATCH] WIP: Create shell-types explicitly