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

Function clear

ccan/ccan/strset/strset.c:396–405  ·  view source on GitHub ↗

Recursive fallback for strset_clear's OOM path. */

Source from the content-addressed store, hash-verified

394
395/* Recursive fallback for strset_clear's OOM path. */
396static void clear(struct strset n)
397{
398 if (!n.u.s[0]) {
399 if (likely(n.u.n->byte_num != (size_t)-1)) {
400 clear(n.u.n->child[0]);
401 clear(n.u.n->child[1]);
402 }
403 free(n.u.n);
404 }
405}
406
407void strset_clear(struct strset *set)
408{

Callers 3

strset_clearFunction · 0.70
iter_successorFunction · 0.50
strmap_clear_Function · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected