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); } /*