Fix user vk description leak in open action.

This commit is contained in:
Ondrej Kozina
2023-10-03 15:37:41 +02:00
parent cfe257e10e
commit 0236b82802

View File

@@ -1815,11 +1815,13 @@ out:
(crypt_get_active_device(cd, activated_name, &cad) ||
crypt_persistent_flags_set(cd, CRYPT_FLAGS_ACTIVATION, cad.flags & activate_flags)))
log_err(_("Device activated but cannot make flags persistent."));
crypt_keyslot_context_free(kc);
crypt_keyslot_context_free(kc);
crypt_safe_free(key);
crypt_safe_free(password);
crypt_free(cd);
free(vk_description_activation);
return r;
}