Re: Small psql memory fix

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Small psql memory fix
Дата
Msg-id 511.1392438529@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Small psql memory fix  (Bruce Momjian <bruce@momjian.us>)
Ответы Re: Small psql memory fix  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers
Bruce Momjian <bruce@momjian.us> writes:
> The attached tiny patch fixes a small leak in psql's \gset command and
> simplifies memory freeing in two places.

The first and third hunks look to me like they introduce memory
leaks, not fix them.  The second hunk is probably safe enough,
although I'm not sure the case can actually occur --- gset should
free the prefix before any new backslash command can be executed.
        regards, tom lane



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Patch: show xid and xmin in pg_stat_activity and pg_stat_replication
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Small psql memory fix