diff options
author | Zhihao Cheng <chengzhihao1@huawei.com> | 2024-02-22 20:10:38 +0800 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2024-09-25 09:08:41 +0200 |
commit | 5d3902383683c997b5cb3f19f07184ed0be6d764 (patch) | |
tree | f9e56128a1c14c9497fd48375e612303da13d168 /tests/jittertest/.gitignore | |
parent | 21b1a69625263ec08a0272240988ab8f685fba92 (diff) |
mkfs.ubifs: Close libubi in error handling paths
The libubi could be opened in get_options(), don't forget to close it
in error handling paths in main(). Also close libubi in error handling
paths in open_ubi(). To implement that, extract libubi_close() into a
new helper function close_ubi().
Besides, invoke crypto_cleanup() in error handling paths in main().
Fixes: a48340c335dab ("mkfs.ubifs: use libubi to format UBI volume")
Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'tests/jittertest/.gitignore')
0 files changed, 0 insertions, 0 deletions