Free a lex range structure, must be called only after zelParseLexRange() * populated the structure with success (C_OK returned). */
| 597 | /* Free a lex range structure, must be called only after zelParseLexRange() |
| 598 | * populated the structure with success (C_OK returned). */ |
| 599 | void zslFreeLexRange(zlexrangespec *spec) { |
| 600 | if (spec->min != shared.minstring && |
| 601 | spec->min != shared.maxstring) sdsfree(spec->min); |
| 602 | if (spec->max != shared.minstring && |
| 603 | spec->max != shared.maxstring) sdsfree(spec->max); |
| 604 | } |
| 605 | |
| 606 | /* Populate the lex rangespec according to the objects min and max. |
| 607 | * |
no test coverage detected