mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-22 22:56:29 +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;
|
||||
}
|
||||
PQclear(res);
|
||||
|
||||
/* truncate existing records */
|
||||
|
||||
@@ -2628,6 +2629,8 @@ witness_copy_node_records(PGconn *primary_conn, PGconn *witness_conn)
|
||||
/* and done */
|
||||
commit_transaction(witness_conn);
|
||||
|
||||
clear_node_info_list(&nodes);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user