Commit 599379dd authored by antirez's avatar antirez
Browse files

ZSETs memory leak #1 solved, another one missing

parent bb975144
...@@ -3738,7 +3738,7 @@ static void zslFree(zskiplist *zsl) { ...@@ -3738,7 +3738,7 @@ static void zslFree(zskiplist *zsl) {
zskiplistNode *node = zsl->header->forward[1], *next; zskiplistNode *node = zsl->header->forward[1], *next;
while(node) { while(node) {
next = node->forward[1]; next = node->forward[0];
zslFreeNode(node); zslFreeNode(node);
node = next; node = next;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment