Re: pgsql: Fix multiple bugs and infelicities in pg_rewind.

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: pgsql: Fix multiple bugs and infelicities in pg_rewind.
Дата
Msg-id CAB7nPqQYr8jsxOuBeU-8vYY_HxHHoJwcqCTyH3txya1=G+TDUQ@mail.gmail.com
обсуждение исходный текст
Ответ на pgsql: Fix multiple bugs and infelicities in pg_rewind.  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: pgsql: Fix multiple bugs and infelicities in pg_rewind.  (Heikki Linnakangas <hlinnaka@iki.fi>)
Список pgsql-committers
On Mon, Mar 30, 2015 at 9:02 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Fix multiple bugs and infelicities in pg_rewind.
>
> Bugs all spotted by Coverity, including wrong realloc() size request
> and memory leaks.  Cosmetic improvements by me.
>
> The usage of the global variable "filemap" here is still pretty awful,
> but at least I got rid of the gratuitous aliasing in several routines
> (which was helping to annoy Coverity, as well as being a bug risk).

Coverity points out that a call to PQclear() in receiveFileChunks of
libpq_fetch.c is missing as the result still leaks resources when
status is PGRES_TUPLES_OK. Please see the patch attached.
--
Michael

Вложения

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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: Remove duplicated words in comments.
Следующее
От: Magnus Hagander
Дата:
Сообщение: pgsql: Add system view pg_stat_ssl