MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / zslFreeNode

Function zslFreeNode

src/t_zset.cpp:100–103  ·  view source on GitHub ↗

Free the specified skiplist node. The referenced SDS string representation * of the element is freed too, unless node->ele is set to NULL before calling * this function. */

Source from the content-addressed store, hash-verified

98 * of the element is freed too, unless node->ele is set to NULL before calling
99 * this function. */
100void zslFreeNode(zskiplistNode *node) {
101 sdsfree(node->ele);
102 zfree(node);
103}
104
105/* Free a whole skiplist. */
106void zslFree(zskiplist *zsl) {

Callers 7

zslFreeFunction · 0.85
zslDeleteFunction · 0.85
zslUpdateScoreFunction · 0.85
zslDeleteRangeByScoreFunction · 0.85
zslDeleteRangeByLexFunction · 0.85
zslDeleteRangeByRankFunction · 0.85
zsetConvertFunction · 0.85

Calls 2

sdsfreeFunction · 0.85
zfreeFunction · 0.85

Tested by

no test coverage detected