]> git.saurik.com Git - redis.git/blobdiff - src/dscache.c
same final call of two if branches moved outside
[redis.git] / src / dscache.c
index 66e6ee6360caacb700974d910e57c83f6514aeba..0448d2cb1457acd188dc4bbd3ac7d0ad278de298 100644 (file)
@@ -383,11 +383,10 @@ void vmThreadedIOCompletedJob(aeEventLoop *el, int fd, void *privdata,
             }
             cacheScheduleIODelFlag(j->db,j->key,REDIS_IO_LOADINPROG);
             handleClientsBlockedOnSwappedKey(j->db,j->key);
-            freeIOJob(j);
         } else if (j->type == REDIS_IOJOB_SAVE) {
             cacheScheduleIODelFlag(j->db,j->key,REDIS_IO_SAVEINPROG);
-            freeIOJob(j);
         }
+        freeIOJob(j);
         processed++;
         if (privdata == NULL) cacheScheduleIOPushJobs(0);
         if (processed == toprocess) return;