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.

Signed-off-by: Krzysztof Kotlenga <[email protected]>
---
 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 77f7999..6c6ad56 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.9.1


------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
TrouSerS-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/trousers-tech

Reply via email to