While reviewing 7cb6e5af8d 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.
This commit is contained in:
Martín Marqués
2018-03-13 11:43:36 -03:00
parent 7cb6e5af8d
commit 208d7d418e

View File

@@ -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;
}