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

Function find_backtrace

common/memleak.c:218–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216}
217
218static struct tal_backtrace *find_backtrace(const tal_t *p)
219{
220 struct tal_backtrace *tbt;
221
222 /* Does it have a child called "tal_backtrace"? */
223 for (tbt = tal_first(p); tbt; tbt = tal_next(tbt)) {
224 if (tal_name(tbt)
225 && streq(tal_name(tbt), "tal_backtrace"))
226 return tbt;
227 }
228 return NULL;
229}
230
231static const void *memleak_get(struct htable *memtable, const struct tal_backtrace **backtrace)
232{

Callers 2

memleak_getFunction · 0.85
add_stealFunction · 0.85

Calls 3

tal_firstFunction · 0.85
tal_nextFunction · 0.85
tal_nameFunction · 0.85

Tested by

no test coverage detected