pg_rewind: Close backup_label file descriptor.

Andres Freund <andres@anarazel.de>

Commit: fa5098da1ab11daaeba788a2f4106394218b6761
Author: Andres Freund <andres@anarazel.de>
Date: 2016-03-27T20:49:27Z
Releases: 9.5.2
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

Files

PathChange+/−
src/bin/pg_rewind/pg_rewind.c modified +1 −0