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

Function raxDefragStackFree

rax.c:2364–2366  ·  view source on GitHub ↗

Free the stack allocation if the iterator used heap memory. */

Source from the content-addressed store, hash-verified

2362
2363/* Free the stack allocation if the iterator used heap memory. */
2364static inline void raxDefragStackFree(raxDefragIterator *it) {
2365 if (it->stack != it->static_items) rax_free(it->stack);
2366}
2367
2368/* Append characters at the current key string of the defragmentation
2369 * iterator. Like the normal iterator, the key is rebuilt incrementally as

Callers 1

raxDefragStopFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected