ctdb-recoverd: Fix a local memory leak
authorMartin Schwenke <martin@meltin.net>
Mon, 17 Aug 2020 10:27:18 +0000 (20:27 +1000)
committerKarolin Seeger <kseeger@samba.org>
Tue, 25 Aug 2020 13:57:28 +0000 (13:57 +0000)
commit9e52bb0c5c613b5e4b141b8268f1e10fe66a9c18
treeef865f95548cb2217c118527058a3128115a1678
parent55216cda60719012109856f0e2d71de510c552c2
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)
ctdb/server/ctdb_recoverd.c