mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-11 19:00:02 +01:00
Fix some warning and leaks in api test code.
This commit is contained in:
@@ -259,8 +259,10 @@ static void _cleanup(void)
|
||||
_system("rm -f " IMAGE1, 0);
|
||||
_system("rm -rf " CONV_DIR, 0);
|
||||
|
||||
remove(test_loop_file);
|
||||
remove(tmp_file_1);
|
||||
if (test_loop_file)
|
||||
remove(test_loop_file);
|
||||
if (tmp_file_1)
|
||||
remove(tmp_file_1);
|
||||
|
||||
remove(VALID_LUKS2_HEADER);
|
||||
remove(REQS_LUKS2_HEADER);
|
||||
|
||||
Reference in New Issue
Block a user