Blame 0001-Fix-memory-leak-in-rpmsign.patch
|
Michal Domonkos |
0c6298 |
From 65fa582b5cb267bb73c3e2b4c502f456d50c41f0 Mon Sep 17 00:00:00 2001
|
|
Michal Domonkos |
0c6298 |
From: Michal Domonkos <mdomonko@redhat.com>
|
|
Michal Domonkos |
0c6298 |
Date: Mon, 12 Aug 2024 17:15:48 +0200
|
|
Michal Domonkos |
0c6298 |
Subject: [PATCH] Fix memory leak in rpmsign
|
|
Michal Domonkos |
0c6298 |
|
|
Michal Domonkos |
0c6298 |
Found by Coverity.
|
|
Michal Domonkos |
0c6298 |
|
|
Michal Domonkos |
0c6298 |
Fixes: RHEL-37564
|
|
Michal Domonkos |
0c6298 |
---
|
|
Michal Domonkos |
0c6298 |
tools/rpmsign.c | 1 +
|
|
Michal Domonkos |
0c6298 |
1 file changed, 1 insertion(+)
|
|
Michal Domonkos |
0c6298 |
|
|
Michal Domonkos |
0c6298 |
diff --git a/tools/rpmsign.c b/tools/rpmsign.c
|
|
Michal Domonkos |
0c6298 |
index a47b2c109..c5e3e11b4 100644
|
|
Michal Domonkos |
0c6298 |
--- a/tools/rpmsign.c
|
|
Michal Domonkos |
0c6298 |
+++ b/tools/rpmsign.c
|
|
Michal Domonkos |
0c6298 |
@@ -152,6 +152,7 @@ static int doSign(poptContext optCon, struct rpmSignArgs *sargs)
|
|
Michal Domonkos |
0c6298 |
char *key = rpmExpand("%{?_file_signing_key}", NULL);
|
|
Michal Domonkos |
0c6298 |
if (rstreq(key, "")) {
|
|
Michal Domonkos |
0c6298 |
fprintf(stderr, _("You must set \"%%_file_signing_key\" in your macro file or on the command line with --fskpath\n"));
|
|
Michal Domonkos |
0c6298 |
+ free(key);
|
|
Michal Domonkos |
0c6298 |
goto exit;
|
|
Michal Domonkos |
0c6298 |
}
|
|
Michal Domonkos |
0c6298 |
|
|
Michal Domonkos |
0c6298 |
--
|
|
Michal Domonkos |
0c6298 |
2.46.0
|
|
Michal Domonkos |
0c6298 |
|