Free the stack allocation if the iterator used heap memory. */
| 2362 | |
| 2363 | /* Free the stack allocation if the iterator used heap memory. */ |
| 2364 | static 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 |