From 53476b82a1db594b9f7195726e8e32cd03d134ba Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Fri, 26 Mar 2010 16:45:41 +0100 Subject: [PATCH] removed unnecessary refcount increase that caused the HINCRBY memleak --- redis.c | 2 -- 1 file changed, 2 deletions(-) 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]); }