diff --git a/src/tss2-tcti/tcti-spi-ltt2go.c b/src/tss2-tcti/tcti-spi-ltt2go.c index ec0daa531..09a276c2d 100644 --- a/src/tss2-tcti/tcti-spi-ltt2go.c +++ b/src/tss2-tcti/tcti-spi-ltt2go.c @@ -291,6 +291,8 @@ create_tcti_spi_ltt2go_platform (TSS2_TCTI_SPI_HELPER_PLATFORM *platform) libusb_exit (platform_data->ctx); } + free(platform_data); + return TSS2_BASE_RC_IO_ERROR; }