components/trousers/patches/tspi_tspi_context.c.patch
author Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
Sun, 26 Mar 2017 13:26:42 -0700
changeset 7803 bab5480f2396
parent 5941 db8aa9865e9f
permissions -rw-r--r--
23209384 Restore developer docs for gdk-pixbuf

# 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();