summaryrefslogtreecommitdiff
path: root/src/bio.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bio.c')
-rw-r--r--src/bio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bio.c b/src/bio.c
index 135b8f3b6..d0f74a296 100644
--- a/src/bio.c
+++ b/src/bio.c
@@ -185,6 +185,8 @@ void *bioProcessBackgroundJobs(void *arg) {
close((long)job->arg1);
} else if (type == BIO_AOF_FSYNC) {
aof_fsync((long)job->arg1);
+ } else if (type == BIO_LAZY_FREE) {
+ decrRefCount((robj*)job->arg1);
} else {
serverPanic("Wrong job type in bioProcessBackgroundJobs().");
}