提交 a25fe0b2 编写于 作者: A antirez

SCAN: simplify keys list cleanup using listSetFreeMethod().

上级 0471b908
...@@ -408,11 +408,7 @@ void scanCommand(redisClient *c) { ...@@ -408,11 +408,7 @@ void scanCommand(redisClient *c) {
} }
cleanup: cleanup:
while ((node = listFirst(keys)) != NULL) { listSetFreeMethod(keys,decrRefCountVoid);
robj *kobj = listNodeValue(node);
decrRefCount(kobj);
listDelNode(keys, node);
}
listRelease(keys); listRelease(keys);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册