diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2021-03-25 14:47:06 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2021-03-25 14:47:06 +0100 |
commit | 62a3a2e1ab14ca97a91376a6cc99be63c05db480 (patch) | |
tree | 5334d19f2d5b173f5b81fa4256aee5ff16cb2cd3 /lib/sqfs/block_processor | |
parent | b0b88d26c9df6d336167f87ce926bba9b56f6af0 (diff) |
Fix fail branch in block processor fragment backend
Only clean up the fragment if it hasn't been re-assigned to the
fragment block. The NULL check is definitely wrong, because we
no longer re-assign it as NULL.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs/block_processor')
-rw-r--r-- | lib/sqfs/block_processor/backend.c | 2 |
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; } |