From: antirez Date: Mon, 31 May 2010 20:56:53 +0000 (+0200) Subject: fixed missing incrRefCount X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/7dd8e7cfdfcdce0defee316645359eb9b36cf4d0?hp=--cc fixed missing incrRefCount --- 7dd8e7cfdfcdce0defee316645359eb9b36cf4d0 diff --git a/redis.c b/redis.c index a49862de..a87026ff 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;