From 6c8ea95f6e72af739c23166fd36c938bed62ee05 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Sat, 26 Feb 2022 11:20:33 +1030 Subject: [PATCH] hsmd: remove unnecessary memleak_remove_region. The current client is in dbid_zero_clients (i.e. it's lightningd). Signed-off-by: Rusty Russell --- hsmd/hsmd.c | 1 - 1 file changed, 1 deletion(-) diff --git a/hsmd/hsmd.c b/hsmd/hsmd.c index a236131f1..ff1b889e4 100644 --- a/hsmd/hsmd.c +++ b/hsmd/hsmd.c @@ -558,7 +558,6 @@ static struct io_plan *handle_memleak(struct io_conn *conn, memtable = memleak_find_allocations(tmpctx, msg_in, msg_in); /* Now delete clients and anything they point to. */ - memleak_remove_region(memtable, c, tal_bytelen(c)); memleak_remove_region(memtable, dbid_zero_clients, sizeof(dbid_zero_clients)); memleak_remove_uintmap(memtable, &clients);