diff --git a/dbutils.c b/dbutils.c index 937e1f7d..e46e6227 100644 --- a/dbutils.c +++ b/dbutils.c @@ -2611,6 +2611,7 @@ witness_copy_node_records(PGconn *primary_conn, PGconn *witness_conn) return false; } + PQclear(res); /* truncate existing records */