]> git.saurik.com Git - redis.git/commitdiff
ZSETs memory leak #1 solved, another one missing
authorantirez <antirez@gmail.com>
Mon, 26 Oct 2009 16:02:05 +0000 (17:02 +0100)
committerantirez <antirez@gmail.com>
Mon, 26 Oct 2009 16:02:05 +0000 (17:02 +0100)
redis.c

diff --git a/redis.c b/redis.c
index 202b0a6992bdce35a32a27ae5b210f45644376cf..c45beecff1d2c24e943f7ab85ecc6f27321d1b00 100644 (file)
--- a/redis.c
+++ b/redis.c
@@ -3738,7 +3738,7 @@ static void zslFree(zskiplist *zsl) {
     zskiplistNode *node = zsl->header->forward[1], *next;
 
     while(node) {
-        next = node->forward[1];
+        next = node->forward[0];
         zslFreeNode(node);
         node = next;
     }