Обсуждение: PL/Python memory leak

Поиск
Список
Период
Сортировка

PL/Python memory leak

От
"Nigel J. Andrews"
Дата:
Adds SPI_freeplan() to the plan object destructor instead of the simple
pfree() added in version 1.25

--
Nigel J. Andrews

Вложения

Re: PL/Python memory leak

От
Tom Lane
Дата:
"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

Shouldn't you also fix the now-incorrect comments above that?

            regards, tom lane

PL/Python memory leak (Replaces earlier patch from today)

От
"Nigel J. Andrews"
Дата:
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()

Вложения

Re: PL/Python memory leak (Replaces earlier patch from today)

От
Tom Lane
Дата:
"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