pg_rewind: Close backup_label file descriptor.
authorAndres Freund <[email protected]>
Sun, 27 Mar 2016 20:48:31 +0000 (22:48 +0200)
committerAndres Freund <[email protected]>
Sun, 27 Mar 2016 20:49:27 +0000 (22:49 +0200)
commitfa5098da1ab11daaeba788a2f4106394218b6761
treec7c3a23ab0738b1ccb56f91b45e28a39011aa4cf
parentec8a30ef2a2b5cf4221231a324d1bd3310fe8f2c
pg_rewind: Close backup_label file descriptor.

This was a relatively harmless leak, as createBackupLabel() is only
called once per pg_rewind invocation.

Author: Michael Paquier
Reported-By: Michael Paquier
Discussion: CAB7nPqRnOw30gOXe2_SPLjh37bgm4V+txbYAPwoXb97nGQ297w@mail.gmail.com
Backpatch: 9.5, where pg_rewind was introduced
src/bin/pg_rewind/pg_rewind.c