memleak: simplify API.

Mainly renaming.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2022-09-16 12:44:39 +09:30
parent fd71dfc7f7
commit 3380f559f9
29 changed files with 186 additions and 161 deletions

View File

@@ -107,7 +107,7 @@ static struct command_result *json_testrpc(struct command *cmd,
static void memleak_mark(struct plugin *p, struct htable *memtable)
{
/* name_option is not a leak! */
memleak_remove_region(memtable, &name_option, sizeof(name_option));
memleak_ptr(memtable, name_option);
}
#endif /* DEVELOPER */