From: antirez Date: Tue, 16 Mar 2010 00:11:23 +0000 (+0100) Subject: Solved a memory leak with Hashes X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/6d4fb107b24cb4ce5c25be5c1cb3fa223a70940a?ds=inline;hp=-c Solved a memory leak with Hashes --- 6d4fb107b24cb4ce5c25be5c1cb3fa223a70940a diff --git a/redis.c b/redis.c index 69e4bfce..8a22cd45 100644 --- a/redis.c +++ b/redis.c @@ -3590,8 +3590,6 @@ static robj *rdbLoadObject(int type, FILE *fp) { tryObjectEncoding(key); tryObjectEncoding(val); dictAdd((dict*)o->ptr,key,val); - incrRefCount(key); - incrRefCount(val); } } } else {