From 7dd8e7cfdfcdce0defee316645359eb9b36cf4d0 Mon Sep 17 00:00:00 2001 From: antirez Date: Mon, 31 May 2010 22:56:53 +0200 Subject: [PATCH] fixed missing incrRefCount --- redis.c | 1 + 1 file changed, 1 insertion(+) diff --git a/redis.c b/redis.c index a49862de2..a87026ff3 100644 --- a/redis.c +++ b/redis.c @@ -9778,6 +9778,7 @@ static int vmSwapObjectThreaded(robj *key, robj *val, redisDb *db) { j->type = REDIS_IOJOB_PREPARE_SWAP; j->db = db; j->key = key; + incrRefCount(key); j->id = j->val = val; incrRefCount(val); j->canceled = 0;