MCPcopy Create free account
hub / github.com/ElementsProject/lightning / memleak_start

Function memleak_start

common/memleak.c:305–320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

303}
304
305struct htable *memleak_start(const tal_t *ctx)
306{
307 struct htable *memtable = tal(ctx, struct htable);
308 htable_init(memtable, hash_ptr, NULL);
309
310 if (memleak_track) {
311 /* First, add all pointers off NULL to table. */
312 children_into_htable(memtable, NULL);
313
314 /* Iterate and call helpers to eliminate hard-to-get references. */
315 call_memleak_helpers(memtable, NULL);
316 }
317
318 tal_add_destructor(memtable, htable_clear);
319 return memtable;
320}
321
322void memleak_init(void)
323{

Callers 7

dev_connect_memleakFunction · 0.50
dev_gossip_memleakFunction · 0.50
closing_dev_memleakFunction · 0.50
handle_memleakFunction · 0.50
handle_dev_memleakFunction · 0.50
finish_reportFunction · 0.50
PRINTF_FMTFunction · 0.50

Calls 3

htable_initFunction · 0.85
children_into_htableFunction · 0.85
call_memleak_helpersFunction · 0.85

Tested by

no test coverage detected