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

Function clean_tmpctx

common/utils.c:129–136  ·  view source on GitHub ↗

Free any children of tmpctx. */

Source from the content-addressed store, hash-verified

127
128/* Free any children of tmpctx. */
129void clean_tmpctx(void)
130{
131 const tal_t *p;
132
133 /* Don't actually free tmpctx: we hand pointers to it around. */
134 while ((p = tal_first(tmpctx)) != NULL)
135 tal_free(p);
136}
137
138void tal_arr_remove_(void *p, size_t elemsize, size_t n)
139{

Callers 15

closing_read_peer_msgFunction · 0.85
wait_for_resolvedFunction · 0.85
peer_reconnectFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
runFunction · 0.85
runFunction · 0.85
runFunction · 0.85
runFunction · 0.85
runFunction · 0.85
runFunction · 0.85
runFunction · 0.85

Calls 2

tal_firstFunction · 0.85
tal_freeFunction · 0.85

Tested by

no test coverage detected