Blame SOURCES/trousers-0.3.14-unlock-in-err-path.patch

7b4f43
diff -ur a/src/tspi/obj_context.c b/src/tspi/obj_context.c
7b4f43
--- a/src/tspi/obj_context.c	2014-11-03 12:31:55.000000000 -0700
7b4f43
+++ b/src/tspi/obj_context.c	2018-08-10 11:02:02.246962638 -0700
7b4f43
@@ -276,6 +276,7 @@
7b4f43
     context->machineName = (BYTE *)calloc(1, len);
7b4f43
     if (context->machineName == NULL) {
7b4f43
         LogError("malloc of %u bytes failed.", len);
7b4f43
+	obj_list_put(&context_list);
7b4f43
         return TSPERR(TSS_E_OUTOFMEMORY);
7b4f43
     }
7b4f43
     memcpy(context->machineName, name, len);