diff --git a/src/lib/tpm.c b/src/lib/tpm.c index a51b8ad4..009f831c 100644 --- a/src/lib/tpm.c +++ b/src/lib/tpm.c @@ -4408,6 +4408,11 @@ WEAK CK_RV tpm_create_transient_primary_from_template(tpm_ctx *tpm, return CKR_GENERAL_ERROR; } + Esys_Free(data); + Esys_Free(hash); + Esys_Free(ticket); + Esys_Free(out_pub); + *primary_handle = handle; return CKR_OK;