Skip to content

Commit a0d31d5

Browse files
committed
[Issue #228]: bufferization quick fix
1 parent 0322c97 commit a0d31d5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/backup.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,10 @@ do_backup_instance(PGconn *backup_conn, PGNodeInfo *nodeInfo, bool no_sync, bool
603603

604604
if (fio_sync(current.hdr_map.path, FIO_BACKUP_HOST) != 0)
605605
elog(ERROR, "Cannot sync file \"%s\": %s", current.hdr_map.path, strerror(errno));
606+
607+
current.hdr_map.fp = NULL;
608+
pg_free(current.hdr_map.buf);
609+
current.hdr_map.buf = NULL;
606610
}
607611

608612
/* close ssh session in main thread */

0 commit comments

Comments
 (0)