diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-06-05 17:51:38 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-06-07 02:44:10 +0200 |
commit | 9c61e28d9b9faf6bd8b4e9b8d28ed79b441fbeb6 (patch) | |
tree | fe04b883ca1343e8d088ffa802b488d435bf086e /lib/sqfs/block_processor/serial.c | |
parent | 09727f7523761cf57d8b90042af78088f0d4ef7f (diff) |
block processor: add an internal common cleanup function
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs/block_processor/serial.c')
-rw-r--r-- | lib/sqfs/block_processor/serial.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/sqfs/block_processor/serial.c b/lib/sqfs/block_processor/serial.c index 7b3825d..f56f3cb 100644 --- a/lib/sqfs/block_processor/serial.c +++ b/lib/sqfs/block_processor/serial.c @@ -28,14 +28,7 @@ static void block_processor_destroy(sqfs_object_t *obj) { sqfs_block_processor_t *proc = (sqfs_block_processor_t *)obj; - free_block_list(proc->free_list); - - if (proc->frag_block != NULL) { - free_block_list(proc->frag_block->frag_list); - free(proc->frag_block); - } - - free(proc->blk_current); + block_processor_cleanup(proc); free(proc); } |