Unload all external tokens on exit.

This commit is contained in:
Ondrej Kozina
2020-03-05 12:24:22 +01:00
committed by Milan Broz
parent c9ff83bfa3
commit c867f2e8a0

View File

@@ -6047,6 +6047,8 @@ crypt_reencrypt_info crypt_reencrypt_status(struct crypt_device *cd,
static void __attribute__((destructor)) libcryptsetup_exit(void)
{
crypt_token_unload_external_all(NULL);
crypt_backend_destroy();
crypt_random_exit();
}