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

Function memleak_init

common/memleak.c:364–371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362}
363
364void memleak_init(void)
365{
366 if (getenv("LIGHTNINGD_DEV_MEMLEAK")) {
367 memleak_track = true;
368 if (backtrace_state)
369 add_backtrace_notifiers(NULL);
370 }
371}
372
373struct print_and_arg {
374 void PRINTF_FMT(2,3) (*print)(void *arg, const char *fmt, ...);

Callers 1

daemon_setupFunction · 0.85

Calls 1

add_backtrace_notifiersFunction · 0.85

Tested by

no test coverage detected