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:
committed by
Daan De Meyer
parent
50ff4753ec
commit
1dc8f51841
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user