homework: let's simply some code via erase_and_free()

This commit is contained in:
Lennart Poettering
2021-10-16 10:11:42 +02:00
parent 48f462547d
commit fc4941d61c
+1 -2
View File
@@ -359,8 +359,7 @@ int home_setup_undo(HomeSetup *setup) {
setup->crypt_device = NULL;
}
explicit_bzero_safe(setup->volume_key, setup->volume_key_size);
setup->volume_key = mfree(setup->volume_key);
setup->volume_key = erase_and_free(setup->volume_key);
setup->volume_key_size = 0;
if (setup->do_drop_caches)