You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
947 B
29 lines
947 B
From d7c541d839d6c470fbd273d0c482091a1fe59fe6 Mon Sep 17 00:00:00 2001
|
|
From: rpm-build <rpm-build>
|
|
Date: Tue, 18 Jun 2024 15:42:13 +0200
|
|
Subject: [PATCH 6/6] tpm2_setprimarypolicy: Fix resource leak
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Signed-off-by: Štěpán Horáček <shoracek@redhat.com>
|
|
---
|
|
tools/tpm2_setprimarypolicy.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/tools/tpm2_setprimarypolicy.c b/tools/tpm2_setprimarypolicy.c
|
|
index 140a8083..459d3d03 100644
|
|
--- a/tools/tpm2_setprimarypolicy.c
|
|
+++ b/tools/tpm2_setprimarypolicy.c
|
|
@@ -134,6 +134,7 @@ static tool_rc process_setprimarypolicy_input(ESYS_CONTEXT *ectx,
|
|
(*auth_policy)->buffer, &((*auth_policy)->size));
|
|
if (!result) {
|
|
LOG_ERR("Failed loading policy digest from path");
|
|
+ free(*auth_policy);
|
|
return tool_rc_general_error;
|
|
}
|
|
}
|
|
--
|
|
2.45.2
|
|
|