From c867f2e8a094c3bb16795caba17cd2e8a7b05655 Mon Sep 17 00:00:00 2001 From: Ondrej Kozina Date: Thu, 5 Mar 2020 12:24:22 +0100 Subject: [PATCH] Unload all external tokens on exit. --- lib/setup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/setup.c b/lib/setup.c index 74d94c39..7b51644b 100644 --- a/lib/setup.c +++ b/lib/setup.c @@ -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(); }