Blame SOURCES/0009-EP11-Fix-memory-leak-introduced-with-recent-commit.patch

253609
From b17570340533d36db1782e5aeafc9107c607b7c4 Mon Sep 17 00:00:00 2001
253609
From: Ingo Franzki <ifranzki@linux.ibm.com>
253609
Date: Mon, 7 Nov 2022 14:04:01 +0100
253609
Subject: [PATCH 09/34] EP11: Fix memory leak introduced with recent commit
253609
253609
Function publ_key_get_spki() allocates the SPKI buffer, so it must be freed
253609
afterwards.
253609
253609
Fixes: 638fa126c8cb28ff7daf2bb383a0461c8f9fe6f8
253609
253609
Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com>
253609
---
253609
 usr/lib/ep11_stdll/ep11_specific.c | 2 ++
253609
 1 file changed, 2 insertions(+)
253609
253609
diff --git a/usr/lib/ep11_stdll/ep11_specific.c b/usr/lib/ep11_stdll/ep11_specific.c
253609
index 3b14a557..9e320503 100644
253609
--- a/usr/lib/ep11_stdll/ep11_specific.c
253609
+++ b/usr/lib/ep11_stdll/ep11_specific.c
253609
@@ -5452,6 +5452,8 @@ error:
253609
         free(chk_attr);
253609
     if (spki_attr != NULL)
253609
         free(spki_attr);
253609
+    if (spki != NULL)
253609
+        free(spki);
253609
     if (new_attrs)
253609
         free_attribute_array(new_attrs, new_attrs_len);
253609
     if (new_attrs1)
253609
-- 
253609
2.16.2.windows.1
253609