Fix inconsequential fd leak in the new mark_file_as_archived() function.
authorAndres Freund <andres@anarazel.de>
Sun, 4 Jan 2015 13:36:22 +0000 (14:36 +0100)
committerAndres Freund <andres@anarazel.de>
Sun, 4 Jan 2015 13:36:22 +0000 (14:36 +0100)
commitec14f16014ecc04f41d9c285cb97922550097653
tree47e28f7eeec95fe8d9e6d5a85b33d042aee57b5b
parentf6cea45029dfc0ad09ef24f73cac936c676f83ed
Fix inconsequential fd leak in the new mark_file_as_archived() function.

As every error in mark_file_as_archived() will lead to a failure of
pg_basebackup the FD leak couldn't ever lead to a real problem.  It
seems better to fix the leak anyway though, rather than silence
Coverity, as the usage of the function might get extended or copied at
some point in the future.

Pointed out by Coverity.

Backpatch to 9.2, like the relevant part of the previous patch.
src/bin/pg_basebackup/receivelog.c