aboutsummaryrefslogtreecommitdiff
path: root/lib/sqfs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqfs')
-rw-r--r--lib/sqfs/block_processor/common.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/sqfs/block_processor/common.c b/lib/sqfs/block_processor/common.c
index 62c355b..6a0015b 100644
--- a/lib/sqfs/block_processor/common.c
+++ b/lib/sqfs/block_processor/common.c
@@ -362,8 +362,10 @@ int sqfs_block_processor_create_ex(const sqfs_block_processor_desc_t *desc,
proc->workers = worker;
worker->cmp = sqfs_copy(desc->cmp);
- if (worker->cmp == NULL)
+ if (worker->cmp == NULL) {
+ ret = SQFS_ERROR_ALLOC;
goto fail_pool;
+ }
proc->pool->set_worker_ptr(proc->pool, i, worker);
}