From 295099ede760d2665b0496486f698e48348ee677 Mon Sep 17 00:00:00 2001 From: liyifeng_seu <307419146@qq.com> Date: Thu, 5 Aug 2021 03:34:25 +0000 Subject: [PATCH] =?UTF-8?q?update=20src/bin/pg=5Fbasebackup/pg=5Fbasebacku?= =?UTF-8?q?p.cpp.=20=E4=BF=AE=E5=A4=8Dbasebackup=E7=9A=84=E5=86=85?= =?UTF-8?q?=E5=AD=98=E6=B3=84=E9=9C=B2=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/bin/pg_basebackup/pg_basebackup.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bin/pg_basebackup/pg_basebackup.cpp b/src/bin/pg_basebackup/pg_basebackup.cpp index 82a9cae5d..489680db5 100644 --- a/src/bin/pg_basebackup/pg_basebackup.cpp +++ b/src/bin/pg_basebackup/pg_basebackup.cpp @@ -708,6 +708,7 @@ static void ReceiveTarFile(PGconn *conn, PGresult *res, int rownum) } disconnect_and_exit(1); } + PQclear(res); while (true) { if (copybuf != NULL) { @@ -886,6 +887,7 @@ static void ReceiveAndUnpackTarFile(PGconn *conn, PGresult *res, int rownum) * Get the COPY data */ res = backup_get_result(conn); + PQclear(res); while (1) { int r;