mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-25 08:06:29 +00:00
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:
committed by
Ian Barwick
parent
b76e5852d3
commit
e454fb77d3
@@ -2608,6 +2608,7 @@ witness_copy_node_records(PGconn *primary_conn, PGconn *witness_conn)
|
|||||||
log_error(_("unable to defer constraints:\n %s"),
|
log_error(_("unable to defer constraints:\n %s"),
|
||||||
PQerrorMessage(witness_conn));
|
PQerrorMessage(witness_conn));
|
||||||
rollback_transaction(witness_conn);
|
rollback_transaction(witness_conn);
|
||||||
|
PQclear(res);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user