From 6d7cd1e729b78dc53ac76883bc15d0f3f0ed15f8 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 10 Aug 2023 09:30:45 +0930 Subject: [PATCH] renepay: make memleak simpler. Simply tell it to scan the entire object. Signed-off-by: Rusty Russell --- plugins/renepay/pay.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/renepay/pay.c b/plugins/renepay/pay.c index a8d1219a4..a13e7c19d 100644 --- a/plugins/renepay/pay.c +++ b/plugins/renepay/pay.c @@ -65,9 +65,7 @@ void amount_msat_reduce_(struct amount_msat *dst, #if DEVELOPER static void memleak_mark(struct plugin *p, struct htable *memtable) { - memleak_scan_obj(memtable, pay_plugin->ctx); - memleak_scan_obj(memtable, pay_plugin->gossmap); - memleak_scan_obj(memtable, pay_plugin->chan_extra_map); + memleak_scan_region(memtable, pay_plugin, sizeof(*pay_plugin)); memleak_scan_htable(memtable, &pay_plugin->chan_extra_map->raw); } #endif