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

Function clean_tmpctx

common/utils.c:166–173  ·  view source on GitHub ↗

Free any children of tmpctx. */

Source from the content-addressed store, hash-verified

164
165/* Free any children of tmpctx. */
166void clean_tmpctx(void)
167{
168 const tal_t *p;
169
170 /* Don't actually free tmpctx: we hand pointers to it around. */
171 while ((p = tal_first(tmpctx)) != NULL)
172 tal_free(p);
173}
174
175void tal_arr_remove_(void *p, size_t elemsize, size_t n)
176{

Callers 15

gossip_store_loadFunction · 0.85
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
daemon_pollFunction · 0.85
plugin_mainFunction · 0.85
opening_negotiate_msgFunction · 0.85

Calls 2

tal_firstFunction · 0.85
tal_freeFunction · 0.85

Tested by

no test coverage detected