pgsql: pg_rewind: Close backup_label file descriptor. - Mailing list pgsql-committers

From Andres Freund
Subject pgsql: pg_rewind: Close backup_label file descriptor.
Date
Msg-id E1akHg0-00056z-9a@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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
------
REL9_5_STABLE

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

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


pgsql-committers by date:

Previous
From: Andres Freund
Date:
Subject: pgsql: Don't use !! but != 0/NULL to force boolean evaluation.
Next
From: Andres Freund
Date:
Subject: pgsql: pg_rewind: Close backup_label file descriptor.