summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2010-03-16 01:11:23 +0100
committerantirez <antirez@gmail.com>2010-03-16 01:11:23 +0100
commit6d4fb107b24cb4ce5c25be5c1cb3fa223a70940a (patch)
tree0c5a17be6f494c8eb59c3bf347155e3ef4373364
parentdd88747b786a4e5f9f4135e355d0d483e991d54e (diff)
downloadredis-6d4fb107b24cb4ce5c25be5c1cb3fa223a70940a.tar.gz
Solved a memory leak with Hashes
-rw-r--r--redis.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/redis.c b/redis.c
index 69e4bfce8..8a22cd45f 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 {