mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 09:54:16 +01:00
libplugin: make memleak see current requests.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
9bf2aa65cd
commit
d5064ff56c
@ -1195,6 +1195,9 @@ static void memleak_check(struct plugin *plugin, struct command *cmd)
|
||||
/* Now delete plugin and anything it has pointers to. */
|
||||
memleak_remove_region(memtable, plugin, sizeof(*plugin));
|
||||
|
||||
/* Memleak needs some help to see into intmaps */
|
||||
memleak_remove_uintmap(memtable, &plugin->out_reqs);
|
||||
|
||||
/* We know usage strings are referred to. */
|
||||
memleak_remove_strmap(memtable, &cmd->plugin->usagemap);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user