hsmd: remove unnecessary memleak_remove_region.

The current client is in dbid_zero_clients (i.e. it's lightningd).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2022-02-26 11:20:33 +10:30
parent b67329bec2
commit 6c8ea95f6e

View File

@ -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);