pgsql: Use palloc in TopMemoryContext instead of malloc

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема pgsql: Use palloc in TopMemoryContext instead of malloc
Дата
Msg-id E1PfJor-0003BE-6j@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Use palloc in TopMemoryContext instead of malloc

As discussed, even if the PL needs a permanent memory location, it
should use palloc, not malloc.  It also makes error handling easier.

Jan Urbański

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=59ea9ef9aa216d0bc718539cd5622628943d3f21

Modified Files
--------------
src/pl/plpython/plpython.c |   15 +++++----------
1 files changed, 5 insertions(+), 10 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Free plan values in the PLyPlanObject dealloc function
Следующее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Improve message for errors in compiling anonymous PL/Python bloc