From e454fb77d3c1940d6ad82ab35dc1a03a23fa707d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Marqu=C3=A9s?= Date: Tue, 13 Mar 2018 11:43:36 -0300 Subject: [PATCH] While reviewing 7cb6e5af8d1db84985ada5cefb5d3acd4519fc7a before merging I noticed that besides the result cleanup added, there was still a missing spot inside the if condition. Adding the PQclear that was missing. --- dbutils.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dbutils.c b/dbutils.c index e46e6227..e246af2f 100644 --- a/dbutils.c +++ b/dbutils.c @@ -2608,6 +2608,7 @@ witness_copy_node_records(PGconn *primary_conn, PGconn *witness_conn) log_error(_("unable to defer constraints:\n %s"), PQerrorMessage(witness_conn)); rollback_transaction(witness_conn); + PQclear(res); return false; }