Re: PL/Python memory leak (Replaces earlier patch from today) - Mailing list pgsql-patches

From Tom Lane
Subject Re: PL/Python memory leak (Replaces earlier patch from today)
Date
Msg-id 5951.1035065541@sss.pgh.pa.us
Whole thread Raw
In response to PL/Python memory leak (Replaces earlier patch from today)  ("Nigel J. Andrews" <nandrews@investsystems.co.uk>)
List pgsql-patches
"Nigel J. Andrews" <nandrews@investsystems.co.uk> writes:
> Adds SPI_freeplan() to the plan object destructor instead of the simple
> pfree() added in version 1.25
> Removes comment in plan object destructor discussing this point
> Adds SPI_freeplan in PLy_spi_prepare() to reclaim plan memory allocated
> in the procedure's context by SPI_prepare()

Applied, along with similar fixes for parallel leakages in plpgsql and
pltcl.

            regards, tom lane

pgsql-patches by date:

Previous
From: "Nigel J. Andrews"
Date:
Subject: PL/Python memory leak (Replaces earlier patch from today)
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] ALTER TABLE ... ADD COLUMN