From d1259418020bd452053ed7555f49018482cadf60 Mon Sep 17 00:00:00 2001 From: Andreas Steffen Date: Thu, 25 Aug 2016 13:22:34 +0200 Subject: [PATCH] libtpmtss: TCTI finalization call changed --- src/libtpmtss/tpm_tss_tss2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libtpmtss/tpm_tss_tss2.c b/src/libtpmtss/tpm_tss_tss2.c index 80c4388af..d0f76ac45 100644 --- a/src/libtpmtss/tpm_tss_tss2.c +++ b/src/libtpmtss/tpm_tss_tss2.c @@ -276,7 +276,8 @@ static void finalize_context(private_tpm_tss_tss2_t *this) { if (this->tcti_context) { - TeardownSocketTcti(this->tcti_context); + tss2_tcti_finalize(this->tcti_context); + free(this->tcti_context); } if (this->sys_context) {