pgsql: Fix memory and file descriptor leaks in pg_receivexlog/pg_baseba

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема pgsql: Fix memory and file descriptor leaks in pg_receivexlog/pg_baseba
Дата
Msg-id E1SwE1M-0004lJ-LX@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix memory and file descriptor leaks in pg_receivexlog/pg_basebackup

When the internal loop mode was added, freeing memory and closing
filedescriptors before returning became important, and a few cases
in the code missed that.

This is a backpatch of commit 058a050e to the 9.2 branch, which seems to
have been neglected (in error, because the bugs it fixes were introduced
in commit 16282ae6 which is present in both master and 9.2).

Fujii Masao

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/776bdc4c5c019a9556a6622a01a406c6c0fec4c9

Modified Files
--------------
src/bin/pg_basebackup/receivelog.c |   58 ++++++++++++++++++++++++------------
src/bin/pg_basebackup/streamutil.c |   16 +++++++++-
2 files changed, 54 insertions(+), 20 deletions(-)


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: pgsql: Now that the diskchecker.pl author has updated the download link
Следующее
От: Alvaro Herrera
Дата:
Сообщение: pgsql: pg_basebackup: stylistic adjustments