]> granicus.if.org Git - postgresql/commit
pg_rewind: Close backup_label file descriptor.
authorAndres Freund <andres@anarazel.de>
Sun, 27 Mar 2016 20:48:31 +0000 (22:48 +0200)
committerAndres Freund <andres@anarazel.de>
Sun, 27 Mar 2016 20:48:31 +0000 (22:48 +0200)
commita6c845946dac5c1f26cf8729cf61f1d852f75484
treedd2d06c4fc7ce91dd56a270aa1c6ffd4596887aa
parent1a7a43672bf2939dda93a27d498349e7a4aa3c14
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