mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 23:24:27 +01:00
libplugin: make memleak see current requests.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -1195,6 +1195,9 @@ static void memleak_check(struct plugin *plugin, struct command *cmd)
|
|||||||
/* Now delete plugin and anything it has pointers to. */
|
/* Now delete plugin and anything it has pointers to. */
|
||||||
memleak_remove_region(memtable, plugin, sizeof(*plugin));
|
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. */
|
/* We know usage strings are referred to. */
|
||||||
memleak_remove_strmap(memtable, &cmd->plugin->usagemap);
|
memleak_remove_strmap(memtable, &cmd->plugin->usagemap);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user