tpm2: replace _cleanup_tpm2_* macros with _cleanup_()

Remove _cleanup_tpm2_context_ and _cleanup_tpm2_handle_ macros, replacing their
use with _cleanup_(tpm2_context_unrefp) and _cleanup_(tpm2_handle_freep),
respectively.
This commit is contained in:
Dan Streetman
2023-06-08 01:09:08 +02:00
committed by Daan De Meyer
parent 50ff4753ec
commit 1dc8f51841
5 changed files with 18 additions and 20 deletions
+1 -1
View File
@@ -832,7 +832,7 @@ static int measure_volume_key(
}
#if HAVE_TPM2
_cleanup_tpm2_context_ Tpm2Context *c = NULL;
_cleanup_(tpm2_context_unrefp) Tpm2Context *c = NULL;
r = tpm2_context_new(arg_tpm2_device, &c);
if (r < 0)
return r;