From 0674364ffda227b3909fe0ef6c6ed93a8e666373 Mon Sep 17 00:00:00 2001 From: Andrzej Nowicki Date: Tue, 13 Mar 2018 11:05:24 +0100 Subject: [PATCH] Clear node list to avoid memory leak, fixes #402 --- dbutils.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dbutils.c b/dbutils.c index 1de530b1..937e1f7d 100644 --- a/dbutils.c +++ b/dbutils.c @@ -2631,6 +2631,8 @@ witness_copy_node_records(PGconn *primary_conn, PGconn *witness_conn) /* and done */ commit_transaction(witness_conn); + clear_node_info_list(&nodes); + return true; }