[PATCH 6.8 07/23] KEYS: trusted: Fix memory leak in tpm2_key_encode()