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

Function dump_leak_backtrace

common/memleak.c:342–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

340}
341
342static void dump_leak_backtrace(const uintptr_t *bt,
343 void PRINTF_FMT(1,2)
344 (*print)(const char *fmt, ...))
345{
346 if (!bt)
347 return;
348
349 /* First one serves as counter. */
350 print(" backtrace:");
351 for (size_t i = 1; i < bt[0]; i++) {
352 backtrace_pcinfo(backtrace_state,
353 bt[i], dump_syminfo,
354 NULL, print);
355 }
356}
357
358bool dump_memleak(struct htable *memtable,
359 void PRINTF_FMT(1,2) (*print)(const char *fmt, ...))

Callers 1

dump_memleakFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected