From 814002c9a10227fd6cc13fdc974d2312201d7c19 Mon Sep 17 00:00:00 2001 From: Amitay Isaacs Date: Fri, 5 Aug 2016 12:34:13 +1000 Subject: [PATCH] ctdb-tools: Free record if it does not contain valid data BUG: https://bugzilla.samba.org/show_bug.cgi?id=12121 Signed-off-by: Amitay Isaacs Reviewed-by: Martin Schwenke --- ctdb/tools/ctdb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ctdb/tools/ctdb.c b/ctdb/tools/ctdb.c index 790170befd5..c9ae5cd9088 100644 --- a/ctdb/tools/ctdb.c +++ b/ctdb/tools/ctdb.c @@ -2038,6 +2038,7 @@ static void traverse_handler(uint64_t srvid, TDB_DATA data, void *private_data) } if (rec->data.dsize == 0) { + talloc_free(rec); return; } -- 2.47.2