Free a whole radix tree, calling the specified callback in order to * free the auxiliary data. */
| 1240 | /* Free a whole radix tree, calling the specified callback in order to |
| 1241 | * free the auxiliary data. */ |
| 1242 | void raxFreeWithCallback(rax *rax, void (*free_callback)(void*)) { |
| 1243 | raxRecursiveFree(rax,rax->head,free_callback); |
| 1244 | assert(rax->numnodes == 0); |
| 1245 | rax_free(rax); |
| 1246 | } |
| 1247 | |
| 1248 | /* Free a whole radix tree. */ |
| 1249 | void raxFree(rax *rax) { |
no test coverage detected