cryptenroll: use erase_and_free() at two more places

This commit is contained in:
Lennart Poettering
2023-11-01 15:19:10 +01:00
parent 4314abf6d4
commit a3b46c6bf6
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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;