From e83e4397e60cb81d2865bf77153aa23011208ec4 Mon Sep 17 00:00:00 2001 From: duzhuolin Date: Thu, 27 Jul 2023 22:35:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=86=85=E5=AD=98=E6=B3=84?= =?UTF-8?q?=E6=BC=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/bin/pg_rewind/fetch.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bin/pg_rewind/fetch.cpp b/src/bin/pg_rewind/fetch.cpp index 03ad5b58f..19d818eba 100755 --- a/src/bin/pg_rewind/fetch.cpp +++ b/src/bin/pg_rewind/fetch.cpp @@ -123,6 +123,8 @@ BuildErrorCode libpqGetParameters(void) } str2 = run_simple_query("SHOW enable_incremental_checkpoint"); if (str2 == NULL) { + pg_free(str); + str = NULL; return BUILD_FATAL; } if (strcmp(str, "on") != 0 && strcmp(str2, "on") != 0) {