提交 a25fe0b2 编写于 作者: A antirez

SCAN: simplify keys list cleanup using listSetFreeMethod().

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