Skip to content

Commit

Permalink
renepay: make memleak simpler.
Browse files Browse the repository at this point in the history
Simply tell it to scan the entire object.

Signed-off-by: Rusty Russell <[email protected]>
  • Loading branch information
rustyrussell committed Aug 12, 2023
1 parent 0091dc4 commit 6d7cd1e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions plugins/renepay/pay.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6d7cd1e

Please sign in to comment.