]> git.saurik.com Git - redis.git/commitdiff
fixed missing incrRefCount
authorantirez <antirez@metal.(none)>
Mon, 31 May 2010 20:56:53 +0000 (22:56 +0200)
committerantirez <antirez@metal.(none)>
Mon, 31 May 2010 20:56:53 +0000 (22:56 +0200)
redis.c

diff --git a/redis.c b/redis.c
index a49862de24d6bdd503dbffba30a4b641b0ede3cc..a87026ff333b1e8608332207746c8ef687fef0fc 100644 (file)
--- 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;