summaryrefslogtreecommitdiff
path: root/lib/sqfs/block_processor
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqfs/block_processor')
-rw-r--r--lib/sqfs/block_processor/backend.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqfs/block_processor/backend.c b/lib/sqfs/block_processor/backend.c
index 35e5b4c..616cbe6 100644
--- a/lib/sqfs/block_processor/backend.c
+++ b/lib/sqfs/block_processor/backend.c
@@ -252,7 +252,7 @@ static int process_completed_fragment(sqfs_block_processor_t *proc,
return 0;
fail:
free(chunk);
- if (frag != NULL)
+ if (frag != proc->frag_block)
release_old_block(proc, frag);
return err;
}