]> granicus.if.org Git - postgresql/commit
Fix memory and file descriptor leaks in pg_receivexlog/pg_basebackup
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 31 Jul 2012 13:00:23 +0000 (09:00 -0400)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 31 Jul 2012 15:02:21 +0000 (11:02 -0400)
commit776bdc4c5c019a9556a6622a01a406c6c0fec4c9
treeb36e3eb7c876f522b1d33f89933e038e29446123
parent99dd2a390f8b0129092fe62a303b0cd1df547691
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
src/bin/pg_basebackup/receivelog.c
src/bin/pg_basebackup/streamutil.c