Blame SOURCES/0013-FAPI-Free-object-when-keystore_search_obj-failed.patch

6a14f3
From 53f235e27ee657266725137a551858b81c24c57b Mon Sep 17 00:00:00 2001
6a14f3
From: JerryDevis <JerryDevis@users.noreply.github.com>
6a14f3
Date: Wed, 5 Jan 2022 21:58:00 +0800
6a14f3
Subject: [PATCH 13/23] FAPI: Free object when keystore_search_obj failed
6a14f3
6a14f3
Signed-off-by: JerryDevis <JerryDevis@users.noreply.github.com>
6a14f3
---
6a14f3
 src/tss2-fapi/ifapi_keystore.c | 1 +
6a14f3
 1 file changed, 1 insertion(+)
6a14f3
6a14f3
diff --git a/src/tss2-fapi/ifapi_keystore.c b/src/tss2-fapi/ifapi_keystore.c
6a14f3
index 743de133..e805029f 100644
6a14f3
--- a/src/tss2-fapi/ifapi_keystore.c
6a14f3
+++ b/src/tss2-fapi/ifapi_keystore.c
6a14f3
@@ -1239,6 +1239,7 @@ cleanup:
6a14f3
         r = TSS2_FAPI_RC_KEY_NOT_FOUND;
6a14f3
     }
6a14f3
     keystore->key_search.state = KSEARCH_INIT;
6a14f3
+    ifapi_cleanup_ifapi_object(&object);
6a14f3
     return r;
6a14f3
 }
6a14f3
 
6a14f3
-- 
6a14f3
2.34.3
6a14f3