Use the right free call or else it will crash when freeing context memory and an owner evict key has been loaded.
Signed-off-by: Krzysztof Kotlenga <[email protected]> --- src/tspi/tspi_ps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tspi/tspi_ps.c b/src/tspi/tspi_ps.c index bde3e53..44b1414 100644 --- a/src/tspi/tspi_ps.c +++ b/src/tspi/tspi_ps.c @@ -107,7 +107,7 @@ Tspi_Context_LoadKeyByUUID(TSS_HCONTEXT tspContext, /* in */ result = obj_rsakey_set_pubkey(*phKey, FALSE, rgbPubKey); - free(rgbPubKey); + free_tspi(tspContext, rgbPubKey); if (result != TSS_SUCCESS) return result; } else { -- 1.9.1 ------------------------------------------------------------------------------ _______________________________________________ TrouSerS-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/trousers-tech
