summaryrefslogtreecommitdiff
path: root/ctdb
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2020-08-17 20:27:18 +1000
committerStefan Metzmacher <metze@samba.org>2020-08-27 10:48:08 +0000
commit245f0043d888fcff392fa8e44322359f0fa5bc82 (patch)
tree8f684a526e9709b2fc27c74956ae1bfdacab0d0c /ctdb
parent772dfb02d45d61115e6c242e6fd9fd26b3a14efc (diff)
downloadsamba-245f0043d888fcff392fa8e44322359f0fa5bc82.tar.gz
ctdb-recoverd: Fix a local memory leak
The memory is allocated off the memory context used by the current iteration of main loop. It is freed when main loop completes the fix doesn't require backporting to stable branches. However, it is sloppy so it is worth fixing. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14466 Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com> (cherry picked from commit d2d90f250214582d7124b8137aa2cf5032b2f285)
Diffstat (limited to 'ctdb')
-rw-r--r--ctdb/server/ctdb_recoverd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ctdb/server/ctdb_recoverd.c b/ctdb/server/ctdb_recoverd.c
index 41f029e6bca..5d6cfa2d009 100644
--- a/ctdb/server/ctdb_recoverd.c
+++ b/ctdb/server/ctdb_recoverd.c
@@ -2261,6 +2261,7 @@ static int get_remote_nodemaps(struct ctdb_context *ctdb,
async_getnodemap_callback,
NULL,
remote_nodemaps);
+ talloc_free(nodes);
return ret;
}