From c755d25cf932364ad9163579c16d05a43bd87282 Mon Sep 17 00:00:00 2001 From: huangfumingyue <41893849+huangfumingyue@users.noreply.github.com> Date: Mon, 17 May 2021 16:52:43 +0900 Subject: [PATCH] fix the Segmentation fault (core dumped) at backup (#173) #149 --- backup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup.c b/backup.c index e69111e4..9b6db171 100644 --- a/backup.c +++ b/backup.c @@ -1089,11 +1089,11 @@ confirm_block_size(const char *name, int blcksz) else if (strcmp(name, "wal_block_size") == 0) elog(DEBUG, "wal block size is %d", block_size); - PQclear(res); if ((endp && *endp) || block_size != blcksz) ereport(ERROR, (errcode(ERROR_PG_INCOMPATIBLE), errmsg("%s(%d) is not compatible(%d expected)", name, block_size, blcksz))); + PQclear(res); } /*