Commit 53476b82 authored by Pieter Noordhuis's avatar Pieter Noordhuis
Browse files

removed unnecessary refcount increase that caused the HINCRBY memleak

parent 01426b05
...@@ -6021,8 +6021,6 @@ static void hincrbyCommand(redisClient *c) { ...@@ -6021,8 +6021,6 @@ static void hincrbyCommand(redisClient *c) {
value += incr; value += incr;
hval = createObject(REDIS_STRING,sdscatprintf(sdsempty(),"%lld",value)); hval = createObject(REDIS_STRING,sdscatprintf(sdsempty(),"%lld",value));
tryObjectEncoding(hval); tryObjectEncoding(hval);
incrRefCount(hval);
if (dictReplace(o->ptr,c->argv[2],hval)) { if (dictReplace(o->ptr,c->argv[2],hval)) {
incrRefCount(c->argv[2]); incrRefCount(c->argv[2]);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment