mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-15 11:04:20 +01:00
memleak: remove exclusions from memleak_start()
Add memleak_ignore_children() so callers can do exclusions themselves. Having two exclusions was always such a hack! Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -1350,7 +1350,11 @@ static void memleak_check(struct plugin *plugin, struct command *cmd)
|
||||
{
|
||||
struct htable *memtable;
|
||||
|
||||
memtable = memleak_start(tmpctx, cmd, cmd);
|
||||
memtable = memleak_start(tmpctx);
|
||||
|
||||
/* cmd in use right now */
|
||||
memleak_ptr(memtable, cmd);
|
||||
memleak_ignore_children(memtable, cmd);
|
||||
|
||||
/* Now delete plugin and anything it has pointers to. */
|
||||
memleak_scan_obj(memtable, plugin);
|
||||
|
||||
Reference in New Issue
Block a user