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

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