From 208d7d418e5cfe9da6b400434c773b301e61839b 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 4f392fc9..80285a67 100644 --- a/dbutils.c +++ b/dbutils.c @@ -2605,6 +2605,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; }