mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 08:36:30 +00:00
Merge pull request #403 from AndrzejNowicki/master
Clear node list to avoid memory leak on witness
This commit is contained in:
@@ -2608,6 +2608,7 @@ witness_copy_node_records(PGconn *primary_conn, PGconn *witness_conn)
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
PQclear(res);
|
||||||
|
|
||||||
/* truncate existing records */
|
/* truncate existing records */
|
||||||
|
|
||||||
@@ -2628,6 +2629,8 @@ witness_copy_node_records(PGconn *primary_conn, PGconn *witness_conn)
|
|||||||
/* and done */
|
/* and done */
|
||||||
commit_transaction(witness_conn);
|
commit_transaction(witness_conn);
|
||||||
|
|
||||||
|
clear_node_info_list(&nodes);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user