mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-21 16:14:23 +01:00
memleak: ignore tal_link artifacts.
We use strends, because that works with or without CCAN_TAL_DEBUG (which prepends file and line). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -91,6 +91,11 @@ static void children_into_htable(const void *exclude1, const void *exclude2,
|
|||||||
if (streq(name, "backtrace"))
|
if (streq(name, "backtrace"))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
/* Don't add tal_link objects */
|
||||||
|
if (strends(name, "struct link")
|
||||||
|
|| strends(name, "struct linkable"))
|
||||||
|
continue;
|
||||||
|
|
||||||
/* ccan/io allocates pollfd array. */
|
/* ccan/io allocates pollfd array. */
|
||||||
if (streq(name,
|
if (streq(name,
|
||||||
"ccan/ccan/io/poll.c:40:struct pollfd[]"))
|
"ccan/ccan/io/poll.c:40:struct pollfd[]"))
|
||||||
|
|||||||
Reference in New Issue
Block a user