Skip to content

Commit

Permalink
removed unnecessary refcount increase that caused the HINCRBY memleak
Browse files Browse the repository at this point in the history
  • Loading branch information
pietern committed Mar 26, 2010
1 parent 01426b0 commit 53476b8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions redis.c
Expand Up @@ -6021,8 +6021,6 @@ static void hincrbyCommand(redisClient *c) {
value += incr;
hval = createObject(REDIS_STRING,sdscatprintf(sdsempty(),"%lld",value));
tryObjectEncoding(hval);
incrRefCount(hval);

if (dictReplace(o->ptr,c->argv[2],hval)) {
incrRefCount(c->argv[2]);
}
Expand Down

0 comments on commit 53476b8

Please sign in to comment.