removed unnecessary refcount increase that caused the HINCRBY memleak

This commit is contained in:
Pieter Noordhuis 2010-03-26 16:45:41 +01:00
parent 01426b054c
commit 53476b82a1

View File

@ -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]);
} }