]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
cryptenroll: fix memory leak
authorLennart Poettering <lennart@poettering.net>
Fri, 12 Aug 2022 13:24:31 +0000 (15:24 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 12 Aug 2022 17:53:41 +0000 (02:53 +0900)
src/cryptenroll/cryptenroll.c

index 045adf871a1666d5ce76f1b4855bcd75ee81e80d..9b540e88378e69d28c7125d7cef862781a4dd242 100644 (file)
@@ -51,6 +51,7 @@ STATIC_DESTRUCTOR_REGISTER(arg_pkcs11_token_uri, freep);
 STATIC_DESTRUCTOR_REGISTER(arg_fido2_device, freep);
 STATIC_DESTRUCTOR_REGISTER(arg_tpm2_device, freep);
 STATIC_DESTRUCTOR_REGISTER(arg_node, freep);
+STATIC_DESTRUCTOR_REGISTER(arg_wipe_slots, freep);
 
 static bool wipe_requested(void) {
         return arg_n_wipe_slots > 0 ||