| 297 | } |
| 298 | |
| 299 | static void add_backtrace_notifiers(const tal_t *root) |
| 300 | { |
| 301 | tal_add_notifier(root, TAL_NOTIFY_ADD_CHILD, add_backtrace); |
| 302 | tal_add_notifier(root, TAL_NOTIFY_STEAL, add_steal); |
| 303 | |
| 304 | for (tal_t *i = tal_first(root); i; i = tal_next(i)) |
| 305 | add_backtrace_notifiers(i); |
| 306 | } |
| 307 | |
| 308 | void memleak_add_helper_(const tal_t *p, |
| 309 | void (*cb)(struct htable *memtable, const tal_t *)) |
no test coverage detected