Skip to content

Commit

Permalink
TCTI: Fix error case lead in spi-ltt2go.
Browse files Browse the repository at this point in the history
platform_data was not freed in error cases.

Signed-off-by: Juergen Repp <[email protected]>
  • Loading branch information
JuergenReppSIT committed Jan 30, 2024
1 parent 9e9deec commit 50ea7f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tss2-tcti/tcti-spi-ltt2go.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 50ea7f7

Please sign in to comment.