pgsql: pg_rewind: Close backup_label file descriptor.

Started by Andres Freundover 10 years ago1 messagescomitters
Jump to latest
#1Andres Freund
andres@anarazel.de

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

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/a6c845946dac5c1f26cf8729cf61f1d852f75484

Modified Files
--------------
src/bin/pg_rewind/pg_rewind.c | 1 +
1 file changed, 1 insertion(+)

--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers