summaryrefslogtreecommitdiff
path: root/tests/unittests/sysfs_mock/class/ubi/ubi0
diff options
context:
space:
mode:
authorZhihao Cheng <chengzhihao1@huawei.com>2024-02-22 20:10:38 +0800
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2024-09-25 09:08:41 +0200
commit5d3902383683c997b5cb3f19f07184ed0be6d764 (patch)
treef9e56128a1c14c9497fd48375e612303da13d168 /tests/unittests/sysfs_mock/class/ubi/ubi0
parent21b1a69625263ec08a0272240988ab8f685fba92 (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/unittests/sysfs_mock/class/ubi/ubi0')
0 files changed, 0 insertions, 0 deletions