fixed missing incrRefCount

This commit is contained in:
antirez 2010-05-31 22:56:53 +02:00
parent 560db612e1
commit 7dd8e7cfdf
1 changed files with 1 additions and 0 deletions

View File

@ -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;