Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
ad807e6f
Commit
ad807e6f
authored
Oct 26, 2009
by
antirez
Browse files
another leak fixed. Can't find more for now, but still a bug in ZSETs to fix
parent
599379dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
redis.c
View file @
ad807e6f
...
...
@@ -3731,17 +3731,21 @@ static zskiplist *zslCreate(void) {
static void zslFreeNode(zskiplistNode *node) {
decrRefCount(node->obj);
zfree(node->forward);
zfree(node);
}
static void zslFree(zskiplist *zsl) {
zskiplistNode *node = zsl->header->forward[
1
], *next;
zskiplistNode *node = zsl->header->forward[
0
], *next;
zfree(zsl->header->forward);
zfree(zsl->header);
while(node) {
next = node->forward[0];
zslFreeNode(node);
node = next;
}
zfree(zsl);
}
static int zslRandomLevel(void) {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment