components/trousers/patches/tspi_tspi_context.c.patch
author Danek Duvall <danek.duvall@oracle.com>
Thu, 13 Oct 2016 08:59:50 -0700
changeset 7102 64f95a1ef701
parent 5941 db8aa9865e9f
permissions -rw-r--r--
23583425 obsolete mercurial-26 needs update to allow upgrade from S11

# Fix memory leak.
# Suitable for upsteam use.
# This change was implemented in-house.
#
--- src/tspi/tspi_context.c	2011-02-21 08:24:44.000000000 -0800
+++ src/tspi/tspi_context.c	2012-04-23 14:53:44.302505000 -0700
@@ -16,7 +16,7 @@
 #include "trousers/tss.h"
 #include "trousers/trousers.h"
 #include "trousers_types.h"
-#include "trousers_types.h"
+#include "tsp_delegate.h"
 #include "spi_utils.h"
 #include "capabilities.h"
 #include "tsplog.h"
@@ -57,6 +57,8 @@
 
 	Tspi_Context_FreeMemory(tspContext, NULL);
 
+	__tspi_freeTable(tspContext);
+
 	/* close the ps file */
 	PS_close();