From 46c3fd98d1031d13aa3e56c3bf81bf681969238a Mon Sep 17 00:00:00 2001 From: Krzysztof Kotlenga Date: Mon, 3 Nov 2014 16:31:41 -0500 Subject: [PATCH 09/28] Removed misguided attempt to free memory in Tspi_Context_Close The docs and note in the code state that Tspi_Context_FreeMemory should be called explicitly before calling Close. Currently it does not free memory anyway, because Tspi_Context_FreeMemory will refuse to work on an already closed context. Originally introduced in 6e789a06f34d51cd8c9da6138e17a5a8db35a129, turned into no-op in 59af8e1b2d5537d82fce1d4990a880f7390fb248. From https://sourceforge.net/p/trousers/trousers/ci/46c3fd98d1031d13aa3e56c3bf81bf681969238a/ --- src/tspi/tspi_context.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/tspi/tspi_context.c b/src/tspi/tspi_context.c index 786787f..fe9317b 100644 --- a/src/tspi/tspi_context.c +++ b/src/tspi/tspi_context.c @@ -55,8 +55,6 @@ Tspi_Context_Close(TSS_HCONTEXT tspContext) /* in */ /* Destroy all objects */ obj_close_context(tspContext); - Tspi_Context_FreeMemory(tspContext, NULL); - /* close the ps file */ PS_close(); -- 1.8.3.1