From a3b46c6bf6ed2d0019e8f27531efd5998d71139d Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 1 Nov 2023 11:26:27 +0100 Subject: cryptenroll: use erase_and_free() at two more places --- src/cryptsetup/cryptsetup-tpm2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cryptsetup') diff --git a/src/cryptsetup/cryptsetup-tpm2.c b/src/cryptsetup/cryptsetup-tpm2.c index 036f3d3a00..41dca776d1 100644 --- a/src/cryptsetup/cryptsetup-tpm2.c +++ b/src/cryptsetup/cryptsetup-tpm2.c @@ -13,7 +13,7 @@ #include "tpm2-util.h" static int get_pin(usec_t until, AskPasswordFlags ask_password_flags, bool headless, char **ret_pin_str) { - _cleanup_free_ char *pin_str = NULL; + _cleanup_(erase_and_freep) char *pin_str = NULL; _cleanup_strv_free_erase_ char **pin = NULL; int r; -- cgit v1.2.3