mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-15 20:09:18 +01:00
renepay: make memleak simpler.
Simply tell it to scan the entire object. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
0091dc4e6d
commit
6d7cd1e729
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue