MCPcopy Create free account
hub / github.com/antirez/ds4 / raxFreeWithCallback

Function raxFreeWithCallback

rax.c:1498–1502  ·  view source on GitHub ↗

Free a whole radix tree, calling the specified callback in order to * free the auxiliary data. */

Source from the content-addressed store, hash-verified

1496/* Free a whole radix tree, calling the specified callback in order to
1497 * free the auxiliary data. */
1498void raxFreeWithCallback(rax *rax, void (*free_callback)(void*)) {
1499 raxRecursiveFree(rax,rax->head,free_callback);
1500 assert(rax->numnodes == 0);
1501 rax_free(rax);
1502}
1503
1504/* Free a whole radix tree. */
1505void raxFree(rax *rax) {

Callers 1

raxFreeFunction · 0.85

Calls 1

raxRecursiveFreeFunction · 0.85

Tested by

no test coverage detected