mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-27 17: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:
@@ -2605,6 +2605,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