diff --git a/redis.c b/redis.c index 527b11ea05f5..c29cc0020249 100644 --- a/redis.c +++ b/redis.c @@ -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]); }