ZRANGEBYSCORE memory leak fixed, ZRANGEBYSCORE initial test added

This commit is contained in:
antirez
2009-11-28 18:03:09 +01:00
parent 1c85b79fef
commit c74e7c7757
2 changed files with 22 additions and 0 deletions

View File

@ -4587,6 +4587,7 @@ static void zrangebyscoreCommand(redisClient *c) {
* it later */
lenobj = createObject(REDIS_STRING,NULL);
addReply(c,lenobj);
decrRefCount(lenobj);
while(ln && ln->score <= max) {
ele = ln->obj;