]> granicus.if.org Git - postgresql/commit
Fix memory and file descriptor leaks in pg_receivexlog/pg_basebackup
authorMagnus Hagander <magnus@hagander.net>
Thu, 12 Jul 2012 11:31:19 +0000 (13:31 +0200)
committerMagnus Hagander <magnus@hagander.net>
Thu, 12 Jul 2012 11:33:58 +0000 (13:33 +0200)
commit058a050ec769fb1431220d822f00b0a442293514
tree42405cebd7ee34ed8184bb73e7750f7d4e5ab610
parent84a42560c82aeb9f3690d93a0d03cf544f53b89b
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.

Fujii Masao
src/bin/pg_basebackup/receivelog.c
src/bin/pg_basebackup/streamutil.c