Blame SOURCES/0014-FAPI-Fixed-the-memory-leak-of-command-data-when-Fapi.patch

897056
From ba3ba5c4ec4f0362a0915c5ae5e002c9cbdc9f1e Mon Sep 17 00:00:00 2001
897056
From: JerryDevis <JerryDevis@users.noreply.github.com>
897056
Date: Wed, 5 Jan 2022 22:09:26 +0800
897056
Subject: [PATCH 14/23] FAPI:Fixed the memory leak of command->data when
897056
 Fapi_GetEsysBlob_Finish failed
897056
897056
Signed-off-by: JerryDevis <JerryDevis@users.noreply.github.com>
897056
---
897056
 src/tss2-fapi/api/Fapi_GetEsysBlob.c | 2 +-
897056
 1 file changed, 1 insertion(+), 1 deletion(-)
897056
897056
diff --git a/src/tss2-fapi/api/Fapi_GetEsysBlob.c b/src/tss2-fapi/api/Fapi_GetEsysBlob.c
897056
index a54bece8..b152ae3a 100644
897056
--- a/src/tss2-fapi/api/Fapi_GetEsysBlob.c
897056
+++ b/src/tss2-fapi/api/Fapi_GetEsysBlob.c
897056
@@ -395,7 +395,7 @@ error_cleanup:
897056
     ifapi_cleanup_ifapi_object(object);
897056
     ifapi_cleanup_ifapi_object(key_object);
897056
     SAFE_FREE(command->path);
897056
-    SAFE_FREE(*data);
897056
+    SAFE_FREE(command->data);
897056
     SAFE_FREE(key_context);
897056
     ifapi_session_clean(context);
897056
     ifapi_cleanup_ifapi_object(&context->loadKey.auth_object);
897056
-- 
897056
2.34.3
897056